About this tool
Number Converter gathers the jobs people usually need four different sites for. Type a number in binary, octal, decimal, hexadecimal or any base from 2 to 36, and every other base fills in as you type. Numbers are handled as exact big integers, so a 40-digit hex key converts without the rounding errors that make ordinary calculators give up past about 16 digits.
It also shows how the number sits in memory as an 8, 16, 32 or 64-bit integer using two’s complement, the system computers use for negative numbers, and what the same bits mean when read as signed or unsigned. The Text ↔ bytes tab turns any text into UTF-8 bytes in binary, hex, decimal or octal and back again, with a character-by-character table that shows why an emoji takes four bytes.
Roman numerals work both ways from 1 to 3,999,999, using the bar over a letter for thousands, and invalid numerals such as IIII or IC are caught with the correct form suggested. Number to words writes 1,234 as “one thousand two hundred thirty-four”, with British “and”, Indian lakh and crore, ordinals and money in eight currencies.
How to use Number Base Converter
- Pick a tab: “Number bases”, “Roman numerals”, “Text ↔ bytes” or “Number to words”.
- In Number bases, type in any box. Use the “Base” menu on the last row for bases such as 3, 12 or 36.
- Tick or untick “Group digits” and “Capital A–F” to change how results look, then press the copy button beside a row to copy it without spaces.
- In Roman numerals, type a number on the left or a numeral on the right. If a numeral isn’t standard, press the “Did you mean…” button to fix it.
- In Text ↔ bytes, type in either box and choose Binary, Hex, Decimal or Octal. In Number to words, set “Counting”, “Capitals” and “Currency”, then press “Copy” on the result you want.
255 in decimal is 1111 1111 in binary, 377 in octal and FF in hex. As an 8-bit number, −1 is stored as 1111 1111, the same bits as unsigned 255. 1994 in Roman numerals is MCMXCIV (M + CM + XC + IV), and 5,000 is V̅. The text “Hi” is 01001000 01101001 in binary.
Features
- Binary, octal, decimal and hex side by side, plus any base from 2 to 36, exact at any length.
- Accepts 0x, 0b and 0o prefixes, minus signs, spaces and underscores.
- Two’s-complement table for 8, 16, 32 and 64 bits, showing whether the number fits and its signed and unsigned readings.
- Roman numerals from 1 to 3,999,999 in both directions, with a part-by-part breakdown, bar notation and a bracket form for plain text.
- Strict Roman numeral checking that explains the mistake and offers the standard spelling.
- Text to UTF-8 bytes and back in binary, hex, decimal or octal, safe for accents, all scripts and emoji.
- Number to words with British “and”, international or Indian counting, decimals, negatives and ordinals.
- Money in words and cheque style (“and 56/100”) for pounds, dollars, euros, rupees, rand and more, with optional “only”.
Tips and good to know
- Decimal bytes need a separator, because 72105 could be 72 105 or 7 21 05, so spaces are added if you choose “Nothing”.
- To read a hex colour such as #7CC4FF, convert it two digits at a time: 7C is 124, C4 is 196 and FF is 255.
- If bytes won’t turn back into text, a multi-byte character has probably been cut in half. Check that every emoji has all four of its bytes.
- For a cheque, choose your currency and tick “End with only”. Write the figure exactly as shown and fill any gap so nothing can be added.
Frequently asked questions
Are the numbers or text I type sent anywhere?
No. Every conversion runs in your browser with JavaScript. Nothing is uploaded; only your last tab is remembered on this device.
Is it free, and how big a number can it handle?
It is free with no sign-up. Number bases has no fixed size limit: hundreds of digits work. Roman numerals go up to 3,999,999 and Number to words up to 36 digits (hundreds of decillions).
Does it work on my phone and offline?
Yes. It works in Safari, Chrome and Firefox on iPhone, Android, tablets and computers. Once the page has loaded, you can keep converting without a connection.
What is two’s complement?
It is how computers store negative whole numbers. To make −5 in 8 bits, write 5 as 0000 0101, flip every bit to 1111 1010 and add one to get 1111 1011. The same pattern read as an unsigned number is 251, which the table shows in its last column.
How do you write 4,000 or more in Roman numerals?
Ordinary numerals stop at 3,999 (MMMCMXCIX). Beyond that, a bar over a letter multiplies it by 1,000, so 4,000 is I̅V̅ and 10,000 is X̅. Where bars can’t be typed, brackets work: (IV) means 4,000.
Why does an emoji become four bytes?
Text is stored as UTF-8, which uses one byte for basic English letters, two for most accented letters, three for many other scripts and four for emoji. Some emoji, such as a waving hand with a skin tone, join two characters together and take eight bytes or more.
Should I write “one hundred and five” or “one hundred five”?
British, Australian and Indian English usually include “and”; American English usually leaves it out. Tick or untick “British and” to match.
Page last reviewed
