Number Base Converter
Type a number in any base and see it in the others at once.
🔒 Your files and text never leave your device. Everything is processed in your browser.
How to use
- Type a number in any of the boxes.
- Read the same value in the other bases.
- Copy the one you need.
Binary, octal, decimal and hex
Computers store numbers in binary (base 2). Hexadecimal (base 16) is a compact way to write binary: each hex digit equals exactly four bits, so 255 is FF and 11111111. Octal (base 8) still appears in Unix file permissions such as 755.
Where you meet other bases
Hex shows up in color codes, memory addresses and error codes; binary in bit flags and network masks. Large values are converted exactly with BigInt, so long numbers are not rounded.
Frequently asked questions
Is there a size limit?
No practical limit. Very large integers are converted exactly.
Can I use prefixes like 0x?
Yes. 0x, 0b and 0o prefixes are accepted.