Number Base Converter
Convert a number between any bases from 2 to 36, including binary, octal, decimal and hexadecimal. Big numbers are exact.
Processed on your device. Files are not uploaded
How to convert between number bases
Enter a number
With a 0x, 0b or 0o prefix, or choose its base.
Read the result
Every value has its own Copy button.
Worked example
This is what Number Base Converter gives for its own sample values. Open the tool above and change anything to try your own.
Number
255
- Input base
- Detect (0x, 0b, 0o or decimal)
- Also show in base
- 3
Result
- Decimal (10)
- 255
- Binary (2)
- 11111111
- Octal (8)
- 377
- Hexadecimal (16)
- FF
- Base 32
- 7V
- Base 36
- 73
- Base 3
- 100110
- Bits needed
- 8
About Number Base Converter
Convert a number between binary, octal, decimal, hexadecimal and any base up to 36. Big numbers are exact because they are not limited to 53 bits, and binary is grouped in fours so it is easy to read.
FAQs
How do I write hex?
With 0x in front, such as 0xFF, or choose Hexadecimal as the input base.
Can I convert negative numbers?
Yes, with a minus sign. For two's complement of fixed widths, use Bitwise Calculator.
Is there a size limit?
No practical one. Very long numbers are handled exactly.