Binary, octal, decimal and hex at a glance
The same integer looks completely different depending on the base you write it in: 255 is 11111111 in binary, 377 in octal and ff in hex. This converter shows all four classic bases simultaneously and live — type in one base, read the rest — plus a custom output for any base from 2 to 36, which covers base-32 identifiers and base-36 short codes.
Two details matter for correctness. Input digits are validated against the source base, so a stray 8 in an octal number produces a clear error instead of a wrong answer. And all arithmetic uses BigInt, so a 40-digit decimal converts exactly — most converters quietly round anything above 253 because they use floating-point math. Everything runs locally in your browser.
How to convert between number bases
- Type or paste an integer —
0x,0band0oprefixes are recognized automatically. - Pick the base you are converting from (or a custom base 2–36).
- Read binary, octal, decimal and hex instantly, and copy any of them.
Where each base shows up
Binary is the machine's native tongue — you meet it in bitmasks, file permissions and network subnetting. Octal survives mainly in Unix permission bits (chmod 755). Hex dominates anywhere bytes are displayed: memory dumps, MAC addresses, CSS colors and hashes. Base 36 (digits plus a–z) appears in URL shorteners and order references because it makes the shortest human-typable codes. To go the other way — from characters to their byte values — try the Text to Binary Converter, or Base64 when you need whole binary payloads as printable text.