About the number base converter
Computers work in binary, programmers often use hexadecimal, and people use decimal. Enter a number, choose its base, and see it in all four common bases. Large integers are handled exactly.
How to use this calculator
- Enter the number.
- Choose its base.
- Read the conversions.
Worked examples
- Binary: 11111111
- Octal: 377
- Hex: FF
255 = 0xFF.
Measurement guidance
Prefixes
0x (hex), 0b (binary), and 0o (octal) prefixes are accepted and ignored.
Frequently asked questions
Why do programmers use hex?
Each hex digit represents exactly four binary digits, making binary easier to read.
Are negative numbers supported?
Yes, with a leading minus sign.