Number Formatter: Add Commas, Currency & Intl.NumberFormat

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

Quick Mode: Add Commas
1,250,500.75
Technical Configuration
Format Style

Formatted Result

$1,250,500.75

Global Locale Comparison

Simultaneous view of 16 geographic formats.

● Live

🇺🇸 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

Locale and style
Output
Quick Mode on this page (en-US)
1,250,500.75
en-US, Monetary (USD)
$1,250,500.75
en-US, Monetary (BRL)
R$1,250,500.75
de-DE, Monetary (EUR)
1.250.500,75 €
hi-IN, Monetary (INR)
₹12,50,500.75 (lakh/crore grouping)
fr-CH, Monetary (CHF)
1'250'500.75 CHF (Swiss apostrophe)

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.

References

Related Tools