Number base converter
Binary, octal, decimal, hex and any base 2–36.
Converted on your device. Works with numbers of any length.
0 to 16 in every base
| Decimal | Binary | Octal | Hex |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 |
| 2 | 10 | 2 | 2 |
| 3 | 11 | 3 | 3 |
| 4 | 100 | 4 | 4 |
| 5 | 101 | 5 | 5 |
| 6 | 110 | 6 | 6 |
| 7 | 111 | 7 | 7 |
| 8 | 1000 | 10 | 8 |
| 9 | 1001 | 11 | 9 |
| 10 | 1010 | 12 | A |
| 11 | 1011 | 13 | B |
| 12 | 1100 | 14 | C |
| 13 | 1101 | 15 | D |
| 14 | 1110 | 16 | E |
| 15 | 1111 | 17 | F |
| 16 | 10000 | 20 | 10 |
About this tool
This converter changes whole numbers between binary (base 2), octal (base 8), decimal (base 10), hexadecimal (base 16) and any base from 2 to 36. Type in any box and the others update; numbers of any length stay exact because it uses BigInt arithmetic.
At a glance
- What it does
- Binary, octal, decimal, hex and any base 2–36.
- Price
- Free, no sign-up
- Works in
- Your browser, on phone or computer. Works offline after the first visit.
- Privacy
- What you type never leaves your device.
How to convert between number bases
- Type the number in the box for its base, for example FF in Hexadecimal.
- Read the value in every other base.
- Use "Other base" for bases like 3, 12 or 36.
Private
Your text stays in your browser and is never sent to a server.
Instant
Results update as you type, with nothing to install.
Free
No sign-up, no limits and no ads inside your writing space.
Frequently asked questions
How do I convert binary to decimal by hand?
Multiply each digit by a power of 2, starting from the right, and add. 1011 = 1×8 + 0×4 + 1×2 + 1×1 = 11.
Why is hexadecimal used in computing?
Because one hex digit is exactly 4 bits, so a byte is always two hex digits (00 to FF). That is why colour codes like #FF8800 and memory addresses use hex.
Can I paste 0x or 0b prefixes?
Yes. 0x (hex), 0o (octal) and 0b (binary) prefixes are understood, and spaces or underscores between digit groups are ignored.
Are negative numbers and fractions supported?
Negative whole numbers are, with a minus sign (−101 in binary is −5). Fractions and two’s complement form are not.



