Convert between number bases
Number Base Converter shows one number in every base you care about — binary with grouping, octal, decimal, hexadecimal — and explains two's complement for negative values, which is where most conversions go wrong.
- Free
- No sign-up
- Runs in your browser
- Nothing uploaded
Runs entirely in your browser — nothing you enter is uploaded.
How to use Number Base Converter
Three steps, about a minute.
-
1
Enter a number
Prefixes like 0x and 0b are understood.
-
2
Set the input base
Or let the prefix decide.
-
3
Read every form
All bases and bit widths appear together.
Number Base Converter questions
Why does 0xFF show 255?
Hex FF is decimal 255. Prefixes 0x, 0b and 0o are recognised and override the base selector.
What is two's complement?
The way computers store negative numbers: flip the bits and add one. -1 in 8 bits is 11111111.
Can it handle 64-bit values?
Yes, exactly. The maths uses BigInt, so even larger values stay precise.