Number format playground
Tweak Intl.NumberFormat options and see how a number renders for different locales, currencies, and notations — then copy the exact code.
Everything runs in your browser — your number never leaves this page.
~~~
~~~
Live output
~~~
Code snippet
~~~
About this tool
Intl.NumberFormat formats numbers for display — decimals, currencies, percents, and compact forms like "1.2M". Locale matters: the same number looks different inen-US vsde-DE.
Use notation: "compact" for abbreviated large numbers, style: "currency" for prices, and fraction digit bounds when you need fixed decimal places.
~~~
Read more
- How to format a number as currency in JavaScript
- JavaScript internationalization — the Intl API family
- How to convert a string to a number in JavaScript
- JavaScript types — numbers, strings, and coercion basics