TL
Tool Lab
💰Donate
💰Donate

Number Formatter

Format numbers in different locales, currencies, scientific notation, and more.

US (1,234,567.89)
1,234,567.89
EU (1.234.567,89)
1.234.567,89
IN (12,34,567.89)
12,34,567.89
CH (1 234 567.89)
1 234 567,89
Scientific
1.23e+6
Fixed
1234567.89
Compact
1.23M
USD Currency
$1,234,567.89
EUR Currency
1.234.567,89 €
GBP Currency
£1,234,567.89
Percentage
1,234,567.89%
Binary
100101101011010000111
Hex
0x12D687
Octal
0o4553207
Words
one million two hundred thirty-four thousand five hundred sixty-seven

About This Tool

The Number Formatter converts a single number into multiple regional and technical formats simultaneously: US, EU, Indian, and Swiss locale formats, scientific notation, fixed-point, compact, three currency formats, percentage, and base conversions (binary, hex, octal, words).

Adjusting the decimal places setting changes the rounding level across all formats at once. Currency formats use the appropriate currency symbol and separators for each locale.

How to Use

  1. Enter the number you want to format in the input field.
  2. Adjust the decimal places to set the rounding level.
  3. View all format results at once in the table below.
  4. Copy the value from any format row to use in your project.

Use Cases

Developers preview regional number formats when implementing internationalization (i18n). Accountants compare currency representations across regions. Engineers verify scientific and fixed-point notations. Embedded developers check binary and hex representations of values.

FAQ

  • How are currency symbols determined?Currency formats use the Intl.NumberFormat API, which automatically applies the correct currency symbol and locale-specific separators for USD, EUR, and GBP.
  • Can it convert decimal numbers to binary?Binary, hex, and octal conversions work on the integer part only. The decimal fraction is truncated via Math.floor() before conversion.
  • What does the Compact format show?Compact format abbreviates large numbers using K (thousands), M (millions), B (billions). For example: 1,200,000 → 1.2M.