Number Formatter
Preview Intl.NumberFormat output for currency, decimal, percent, and units
Preview the combined effect of Intl.NumberFormat options. Compare how the same number renders across locales, styles, and digit settings โ copy the resulting code straight into your app.
1,234,567.89
Code
new Intl.NumberFormat("en-US", {
"style": "decimal",
"minimumFractionDigits": 0,
"maximumFractionDigits": 2
}).format(number)Verify outputs before using in production. No warranty โ see Terms.