Home › Converters › Number Base Converter
Converters
Number Base Converter
Convert whole numbers between decimal, binary, octal and hexadecimal. Type a value, pick its base, and read all four representations at once.
Try it now
💡 Good to know: Computers use base-2 because a switch is simply on or off; hexadecimal (base-16) is just a shorter way to write those bits.
Worked example
Decimal: 255 · Binary: 11111111 · Octal: 377 · Hex: FF
Inputs
- Value
255 - From base
10 / 2 / 8 / 16
Frequently asked
What is 255 in hex?
FF. In binary it's 11111111.
Does it handle negative numbers?
It works on signed integers; for bit patterns use positive values.