Convert between number bases
Programmers work across number bases constantly: decimal for everyday numbers, binary for bits, hexadecimal for colours and memory, octal for permissions. Converting between them by hand is fiddly and error-prone. This converter takes a value in any of these bases and shows it in the others at once.
How to use it
- Enter a value and tell it which base the value is in.
- Read the equivalents in binary, octal, decimal, and hexadecimal.
- Copy the base you need.
Where each base appears
- Binary for bits and flags.
- Hexadecimal for colours, memory addresses, and byte values.
- Octal for Unix file permissions.
Questions people ask
Why is hex so common in code? Each hex digit maps neatly to four bits, so it's a compact, readable way to write binary values.
Is my input stored? No — conversion runs locally in your browser.