TinyCalc

Hex ↔ Dec ↔ Bin

Convert numbers between hexadecimal, decimal and binary instantly.

Resulttinycalc.net
Hexadecimal
0xff
Decimal
255
Binary
0b11111111
Octal
0o377
Bit length
8bits
same number, bases 16, 10 and 2

How it works

Hexadecimal, decimal and binary are just different ways to write the same number: hex digit = 4 bits, so 0xFF = 255 = 0b11111111. Type in any of the three fields and the other two update live. Handy for permissions, color codes, registers and network masks.

Related calculators