01What is Number Format Converter?
Type one number and see it written a dozen ways at once. It's handy when a ticket says the price looks wrong in Germany, or when you need the decimal value behind a hex mask. The parser starts by stripping commas, underscores and spaces, so 1,234,567 and 1_000_000 both read cleanly. It accepts 0b, 0o and 0x prefixes for binary, octal and hex. Everything else must be a plain decimal or exponent number such as -3.5, .5 or 1e3. Input like 12abc, 0b102 or a bare 0x is rejected with Invalid number format. We'd rather say no than guess. Locale output comes from the browser's Intl.NumberFormat API, which follows the Unicode CLDR locale data. Pick en-US, de-DE, fr-FR, ja-JP or hi-IN and the Formatted and Percent rows change grouping and separators. For example, 1234567.89 becomes 12,34,567.89 in hi-IN, the Indian lakh grouping. The rest of the grid is fixed. You get scientific notation to four decimals, fixed to two decimals, a US dollar string and a euro string. There's also a compact label such as 1.2K and the whole-number part spelled out in English words. The Percent row treats your input as a percent value, so 50 shows as 50.00%, not 5,000%. Non-negative whole numbers up to 2^53 - 1 also get binary, octal and hexadecimal rows with their prefixes. Here's a worked case. Enter 0xFF and you'll see Decimal 255, Binary 0b11111111, Octal 0o377 and Currency (EUR) 255,00 €. The Words row reads two hundred and fifty-five. A few limits come straight from how JavaScript stores numbers. Every value is an IEEE 754 double. Above 9,007,199,254,740,991 integers lose precision, so 9007199254740993 is shown as 9007199254740992 and the base rows disappear. The words row drops decimals, so -42.5 reads as negative forty-two. Past the trillions it falls back to digits. The EUR row always uses German formatting, whatever locale you choose. Commas are always thousands separators, which means a European-style 1,5 is read as 15. The number you type stays in this page. Formatting is done by your browser's own Intl engine, so exact output can vary a little between browsers. Click any row to copy its value.
Front-end developers testing number localisation, plus anyone who needs a value in hex, binary, words or compact form without opening a REPL. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Number Format Converter
- Type a value into Number Input, such as 1234567.89, 0xFF or 0b1010, or load the Large Number, Binary or Hex example.
- Pick a Locale from the dropdown to change the Formatted and Percent rows.
- Scan the result grid. Binary, Octal and Hexadecimal appear only for non-negative safe integers.
- Click any row to copy that value. A check mark confirms the copy.
- Use the reset button to bring back the sample number and en-US.
03Worked examples
- Input:
0xFF - Result:
Decimal 255, Binary 0b11111111, Octal 0o377, Hexadecimal 0xFF, Currency (EUR) 255,00 €, Words two hundred and fifty-five - Trimmed to the most useful rows.
- Input:
1,234 (Locale de-DE) - Result:
Formatted (de-DE) 1.234, Percent 1.234,00 %, Hexadecimal 0x4D2, Compact 1.2K, Scientific 1.2340e+3 - Commas in the input are thousands separators. The locale changes only the Formatted and Percent rows.
- Input:
1234567.89 (Locale hi-IN) - Result:
Formatted (hi-IN) 12,34,567.89, Compact 1.2M, Currency (USD) $1,234,567.89 - hi-IN uses lakh grouping. No base rows, because the value isn't a whole number.
- Input:
-42.5 - Result:
Formatted -42.5, Fixed (2) -42.50, Currency (USD) -$42.50, Words (approx) negative forty-two (no Binary/Octal/Hex rows) - Base rows only show for non-negative integers, and the words row drops the fraction.
- Input:
9007199254740993 - Result:
Decimal 9007199254740992, Compact 9007.2T (no Binary/Octal/Hex rows) - Beyond 2^53 - 1 the value is stored as the nearest double, so the last digit changes.
- Input:
12abc - Result:
Invalid number format - The parser rejects partial numbers instead of reading the leading 12.
04Common use cases
- Checking how a price renders for German, French or Indian users before shipping an i18n change
- Turning a hex colour channel or bit mask like 0xFF into decimal and binary while debugging
- Getting the compact 1.2K or 1.2M label to compare against a dashboard counter
- Writing out a whole amount in English words for an invoice or contract draft, then checking it by eye
- Confirming whether a large database ID is still safe to handle as a JavaScript number
- Showing students the same value in binary, octal, hex and scientific notation side by side
05Tips
- If an ID is longer than 16 digits, compare the Decimal row with what you typed. A changed last digit means it's past 2^53 - 1 and needs BigInt or a string.
- Input like 1,5 is read as fifteen, not one and a half. Type 1.5 for decimals regardless of locale.
- The words output uses British-style 'and' (one hundred and five) and ignores the fraction, so check it before putting it on a legal or financial document.
- The EUR row is always German-formatted, so don't take it as the only correct way to show euros.
- Underscores are stripped, so numeric literals copied from JavaScript, Python or Rust like 1_000_000 parse fine.
06Related concepts
Intl.NumberFormat, Number bases, Locale formatting, Scientific notation, Compact notation.
Frequently Asked Questions
What is Number Format Converter?
Number Format Converter is a free, browser-based developer tool on AIDToolStack. Convert between number bases and formats It requires no installation or sign-up and works entirely in your browser.
Is Number Format Converter free to use?
Yes. No sign-up, no fees and no usage cap.
Does Number Format Converter store my data?
No. It runs in your browser; nothing is uploaded.