Number Formatter: Add Commas, Currency & Intl.NumberFormat
Add thousands separators, format currency, decimals or percent in 16 locales, compare them side by side and copy code in JS, Python, PHP, Java and more.
Updated November 2026
Reviewed by Diego Ferraz
Formatted Result
Global Locale Comparison
Simultaneous view of 16 geographic formats.
🇺🇸 en-US
$1,250,500.75
🇩🇪 de-DE
1.250.500,75 €
🇧🇷 pt-BR
R$ 1.250.500,75
🇫🇷 fr-FR
1 250 500,75 €
🇯🇵 ja-JP
¥1,250,500.75
🇮🇳 hi-IN
₹12,50,500.75
🇬🇧 en-GB
£1,250,500.75
🇨🇳 zh-CN
¥1,250,500.75
🇮🇹 it-IT
1.250.500,75 €
🇷🇺 ru-RU
1 250 500,75 ₽
🇪🇸 es-ES
1.250.500,75 €
🇨🇭 fr-CH
1 250 500.75 CHF
🇸🇦 ar-SA
١٬٢٥٠٬٥٠٠٫٧٥ ر.س.
🇰🇷 ko-KR
₩1,250,500.75
🇵🇹 pt-PT
1 250 500,75 €
🇻🇳 vi-VN
1.250.500,75 ₫
How to format a number online
Paste a number, add commas in one step, then go further if you need to
1. Paste the number in Quick Mode
Quick Mode: Add Commas formats it right away with the conventions of the page language, which on this English page means en-US: 1250500.75 becomes 1,250,500.75. It reads both 1,250,500.75 and 1.250.500,75, and the small copy button grabs the result.
2. Adjust it in Technical Configuration
Pick a Locale (16 to choose from, or Auto), a Format Style (Monetary, Decimal or Percent), the Currency, Min. and Max. Decimals from 0 to 20, and whether to use grouping separators. The Formatted Result updates as you change anything.
3. Copy the result or the code
Click Copy next to the Formatted Result (or press Shift+Enter while no field has focus). For code, open the collapsed Intl.NumberFormat Snippet panel, pick one of 8 languages and use Copy Code.
What this number formatter does
Thousands separators for everyone, Intl.NumberFormat options for developers
Add commas in one step
Quick Mode turns a raw number into 1,250,500.75 with no settings to touch, keeping every decimal you typed.
16 locales, 20 currencies
From en-US and en-GB to hi-IN, fr-CH, ja-JP and ar-SA, each with its own separators and symbol position, and any of 20 currencies, so you can show BRL with US conventions if you want.
Global Locale Comparison
The same number in 16 locales side by side, each in its local currency with 2 decimals, so you can spot the differences at a glance.
Code in 8 languages
JavaScript, Python (Babel), PHP (intl), Java, Kotlin, C#, Swift and Go. The JavaScript snippet mirrors every option you set; the others are a starting point to check before you ship.
Same number, different locales
How 1,250,500.75 comes out of the formatter
When you'll reach for this tool
The scenarios that come up most often
E-commerce price display
Format the same price for every storefront locale with one Intl.NumberFormat call instead of hand-rolled string logic.
Financial dashboards
Show portfolio balances and revenue with the correct thousand separators for each region your users are in.
Invoices and reports
Generate correctly-localized number strings for documents sent to clients in different countries.
Learning and prototyping
Try option combinations and see the exact output before locking in a formatting config in production code.
Common mistakes
Confusing style: 'percent' with multiplying by 100
Intl.NumberFormat treats the value as a fraction: pass 0.45 to get "45%". Passing 45 gives "4,500%".
Shipping a non-JavaScript snippet without checking it
Only the JavaScript snippet applies every option. Java and Kotlin in Monetary style use the locale's default currency, Go prints a plain number without symbol or %, C# reads only Min. Decimals, and the Python (Babel) calls skip the decimal and grouping settings. The // → comment shows the JavaScript result, so run the code once in your own language.
Assuming every locale groups digits in threes
hi-IN groups in pairs after the first three digits. That's the lakh/crore system, and it's easy to miss if you've only tested en-US.
Writing a manual regex for thousand separators
Intl.NumberFormat already handles cases like the Swiss apostrophe or Indian grouping, which a hand-written regex will usually get wrong.
Why use this number formatter
If all you need is commas, Quick Mode does it the moment you paste. If you're building something, Technical Configuration exposes the Intl.NumberFormat options that matter (locale, style, currency, decimals, grouping) and shows the exact JavaScript that reproduces the result.
The Global Locale Comparison puts 16 formats on one screen, including regional quirks like India's lakh/crore grouping and the Swiss apostrophe that generic "add commas" tools tend to get wrong. Everything runs in your browser.
Frequently asked questions
Paste it into Quick Mode: Add Commas at the top of this page. 1250500.75 comes back as 1,250,500.75, ready to copy, with no code or settings involved. If you want periods or spaces as separators instead, choose a locale such as de-DE or fr-FR in Technical Configuration.
Use new Intl.NumberFormat('en-US').format(1250500) — it returns "1,250,500". Swap the locale to 'de-DE' if you want periods as thousand separators instead.
It sets the minimum number of decimal places shown. With a value of 2, 1250500 renders as $1,250,500.00. maximumFractionDigits caps the other end, so you can allow up to 4 places without forcing them.
Yes. The hi-IN locale implements it natively: digits are grouped in pairs after the first three, so 1250500.75 in INR becomes ₹12,50,500.75 with no custom logic.
The percent style treats your input as a fraction, so 0.45 becomes "45%". If your value is already 45, divide it by 100 first, or the formatter outputs "4,500%".
Set the locale independently from the currency code. For example, BRL with the en-US locale gives R$1,250,500.75, while pt-BR gives R$ 1.250.500,75. Both are valid; they just follow different regional conventions.
It's meant as a fixed reference: every card shows the number as currency in that country's own currency with 2 decimals, whatever you pick in Technical Configuration. Your chosen locale, style and decimals only affect the Formatted Result and the snippet.
Use new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' }).format(1250500.75), which returns "$1,250,500.75". The currency option is required whenever style is set to 'currency'.
References
Related Tools
- BMI Calculator: WHO Categories & Healthy Weight Range Finance Calculate your BMI in kg and cm or in pounds, feet and inches, see your WHO category and the healthy weight range for your height. Free, in your browser.
- CLT vs PJ Calculator Brazil 2026: Break-Even PJ Rate Finance Enter a Brazilian CLT salary and see how much to invoice as a PJ (Simples, Presumido or MEI) to match it, counting FGTS, vacation and 13th salary.
- Compound Interest Calculator with Monthly Contributions Finance Project savings with monthly and extra deposits, then see the final balance after tax and inflation, year by year with a chart. Free, no signup.
- Currency Converter: 30 Currencies at the ECB Daily Rate Finance Convert USD, EUR, GBP and 27 more currencies at the ECB daily reference rate, with the 7-day change, saved pairs and a history you can export to CSV.
- Discount Calculator: Sale Price, % Off & Stacked Coupons Finance Get the sale price and savings for any % off, find the original price in Reverse mode, see the real total of stacked coupons and compare 3 offers.