Number Formatter

The number formatter turns raw numbers into neatly formatted ones — with thousands separators, set decimal places, currency symbols, percentages or compact forms like 1.2M — for any locale, from US and UK to India, Germany and Arabic. Paste a list to format many at once and copy the matching Intl.NumberFormat code. It runs in your browser.

1234567.891 by locale

LocaleFormatted
en-US1,234,567.89
de-DE1.234.567,89
fr-FR1 234 567,89
en-IN12,34,567.89
de-CH1’234’567.89

When to use it

  1. Add thousands separators to a list of figures.
  2. Format prices in another country's style.
  3. Get compact numbers like 1.2K and 3.4M for a dashboard.
  4. Generate Intl.NumberFormat code for a web app.

How to Use

  1. Paste numbers, one per line.
  2. Choose locale, style and notation.
  3. Set decimal places and grouping.
  4. Copy the formatted list or the code.

Features

  1. 14 locales
  2. Number, currency and percent
  3. Compact, scientific, engineering
  4. Decimal places and sign control
  5. Bulk formatting
  6. Intl.NumberFormat code
  7. 100% client-side

FAQs

How do I add commas to a number?

Paste it in with thousands separators on; 1234567 becomes 1,234,567 in US English.

Why do some countries use commas for decimals?

Conventions differ: Germany writes 1.234,5 and France 1 234,5. Pick the locale to match.

How do I format numbers in lakh and crore?

Choose English (India): 1234567 becomes 12,34,567.

What is compact notation?

A short form like 1.5K or 2.3M, used in dashboards and social media.

Is anything uploaded?

No. It runs in your browser.

Technical Details

Formatting is done with the browser's Intl.NumberFormat, the same engine websites use, so each locale's real conventions are applied: en-US groups thousands with commas and uses a decimal point, de-DE swaps them, fr-FR uses a narrow space, en-IN groups by lakh and crore (12,34,567), de-CH uses an apostrophe, and Arabic locales use Arabic-Indic digits. Options cover number, currency (any ISO 4217 code) and percent styles; standard, compact (1.2M, 12K), scientific and engineering notation; minimum and maximum decimal places with rounding; thousands grouping; and how the sign is shown. Numbers are formatted in bulk, one per line, and the equivalent JavaScript is generated so the exact output can be reproduced in code.

Calculators & Converters

Calculators & Converters

  • Timecard Calculator
  • Random Number Generator
  • GPA Calculator
  • Tip Calculator
  • Age Calculator
  • Date Difference Calculator
  • Percentage Calculator
  • Loan Calculator