Tool guide
About this tool.
Number formatting changes how a value is displayed: grouping, decimal separators, currency symbols and percent signs follow a chosen locale. Formatting is not parsing a localized price or converting between currencies.
Input uses plain decimal syntax with a dot and optional sign or e exponent. Plain integers use bigint internally; decimal strings go directly to modern Intl.NumberFormat without first losing digits in a JavaScript Number.
Fraction digits control display rounding. Maximum removes unnecessary trailing zeroes; Fixed pads to the requested count. Percent input is a ratio: 0.856 means 85.6%, not 0.856%.
- Preview how a value appears in a localized UI or report.
- Prepare consistent decimal, currency and percentage labels without changing the underlying source.
- Inspect exact separator characters, resolved locale and rounding settings before copying text into another system.
Paste one ungrouped decimal value or apply a complete sample. Use a dot for input regardless of the output locale; remove currency symbols and percent signs yourself.
Choose Decimal, Currency or Percent, then set locale, fraction digits, Maximum/Fixed precision and grouping. In Percent mode enter the ratio, such as 0.25 for 25%.
Run and review the formatted value. Report additionally shows the exact input string, resolved locale, applied fraction limits and parts with their actual separator characters.
Copy or save formatted-number.txt or number-format-report.json. Keep the original numeric source for calculations; the display may be rounded and contains locale-specific characters.
- en-US decimal 1234567.89 → 1,234,567.89.
- de-DE currency EUR 1234567.89 → 1.234.567,89 followed by a nonbreaking space and €.
- cs-CZ currency CZK 1234567.89 uses decimal comma and nonbreaking grouping spaces.
- Percent 0.856 with one fraction digit → 85.6% in en-US.
- 9007199254740993.125 with three fraction digits retains every digit rather than becoming 9007199254740994.
- Value 1.5 with Fixed 3 → 1.500; Maximum 3 → 1.5.
- Input permits ASCII decimal digits, optional +/− sign, decimal dot and e/E exponent. Grouping commas/spaces, locale decimal commas, symbols, NaN, Infinity, hex and binary notation are rejected.
- The raw input limit is 1024 characters. Plain integers remain exact within that limit. Decimal/exponent input must stay within Intl’s finite magnitude range; overflow and underflow are rejected.
- Exact decimal-string support is checked at runtime. Older engines fail explicitly instead of silently falling back to a precision-losing Number conversion.
- Fraction digits are an integer from 0–20 and apply to Decimal, Currency and Percent. Fixed pads trailing zeroes; Maximum omits them.
- Default Intl display rounding is used, including ties away from zero. Formatting is not financial arithmetic, cash rounding, an exchange rate or a payment calculation.
- Locale data and symbols come from the runtime’s ICU/CLDR version and can vary between platforms. Unsupported languages or malformed tags are rejected; regional fallback is visible in Report.
- Currency mode accepts codes reported by Intl.supportedValuesOf. Currency is ignored in Decimal and Percent modes; choosing another code relabels the same amount, it never exchanges it.
- Spaces may be nonbreaking or narrow nonbreaking. Copy and download preserve the exact characters; Report parts helps distinguish them from ordinary spaces.