Automatically format your numbers and currencies
Help AutoNumeric by supporting it
Natural syntax allows to easily setup and configure any element to be formatted.
Very high configurability with more than 50 options available. Define your format as you wish.
ES6-ready, function chaining, shared options, Web Workers compatible. Actively maintained open-source code.
AutoNumeric is a JavaScript library that provides live as-you-type formatting for international numbers and currencies.
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
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.
AutoNumeric focuses on efficiency and speed, making all your input interactions blazing fast.
Got lots of formatting to do? Need even more speed? AutoNumeric supports being used in Web Workers.
No dependencies are needed to use AutoNumeric.
No jQuery, no Lodash, no nothing!
Written in modern JavaScript, AutoNumeric uses the latest technologies and is prepared for the future.
While the Android platform makes input management hard to play with, AutoNumeric supports it.
AutoNumeric is framework-agnostic, so you can easily integrate it with third-party frameworks.
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 GithubSupport 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!
DonateYour 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.