Convert numbers: binary, octal, decimal, hex and any base

Turn a number into binary, hex or any base and back: for colours, file sizes, permissions or homework. Type in any box; the others follow.

How it is worked out

Type a number above to see each step, a fraction too (0.1, ff.8, 10.101).

Hex digits in binary and decimal
HexBinaryDecimal
000000
100011
200102
300113
401004
501015
601106
701117
810008
910019
A101010
B101111
C110012
D110113
E111014
F111115

Each hex digit is four bits, each octal digit three, so hex to binary is one digit at a time.