Skip to content

AutoNumeric.js

Automatically format your numbers and currencies

Help AutoNumeric by supporting it

Easy to use

Natural syntax allows to easily setup and configure any element to be formatted.

Versatile

Very high configurability with more than 50 options available. Define your format as you wish.

Powerful

ES6-ready, function chaining, shared options, Web Workers compatible. Actively maintained open-source code.

What is AutoNumeric?

AutoNumeric is a JavaScript library that provides live as-you-type formatting for international numbers and currencies.

Enough of that, I want to try it now!

The <input> element below is managed by AutoNumeric. Change its value and see how the underlying rawValue is modified:

The rawValue is equal to 1234567.89

Source code for that input

new AutoNumeric('#input').french();

While the input value is formatted, you can always access the unformatted raw value using aNElement.getNumericString().

Play with the live demo and the vue-autonumeric demo.

Use the configuration generator to easily set up the format you want.

Want to know more? Check out the examples.

Speed & efficiency

AutoNumeric focuses on efficiency and speed, making all your input interactions blazing fast.

Web Workers-enabled

Got lots of formatting to do? Need even more speed? AutoNumeric supports being used in Web Workers.

Independent

No dependencies are needed to use AutoNumeric.
No jQuery, no Lodash, no nothing!

Future proof

Written in modern JavaScript, AutoNumeric uses the latest technologies and is prepared for the future.

Android support

While the Android platform makes input management hard to play with, AutoNumeric supports it.

Framework-ready

AutoNumeric is framework-agnostic, so you can easily integrate it with third-party frameworks.

Contribute

Help build AutoNumeric

AutoNumeric is and always will be 100% free and open-source under the MIT license. Fork it on GitHub and help make it better.

Fork on Github

Donate

Support AutoNumeric development

Help pay for dedicated dev time so that AutoNumeric can move forward and evolve. If you are a company that uses AutoNumeric daily, your support means a lot!

Donate

Feedback

Your ideas are precious

Your ideas and comments are very important to us.
Open an issue on GitHub for any feature request or problem, and we'll get on it. If you have a question, ping us on our Gitter channel.

Open an issue