Number Base Converter
Convert between binary, octal, decimal, hex and any base from 2 to 36.
Binary (base 2)
0b1111 1111
Octal (base 8)
0o377
Decimal (base 10)
255
Hexadecimal (base 16)
0xff
Bit length
8 bits
Fits in
1 byte
Values are converted with arbitrary-precision integers, so numbers far beyond 64 bits stay exact. Prefixes like 0x, 0b and 0o in your input are ignored.