Base Converter

Number base converter

Enter a number in any base — binary, decimal, octal or hex — and see it converted to all four at once.

Four bases at once

Programmers move between number bases constantly: decimal for everyday maths, binary for bit-level work, hexadecimal for colours, memory addresses and byte values, and occasionally octal for things like Unix file permissions. Pick the base you're starting from, type your value, and all four representations appear together. Tap any result to copy it.

Why hex and binary matter

Hexadecimal is popular because each hex digit maps neatly to exactly four binary bits, making it a compact, readable stand-in for binary — which is why colour codes (#FF8800) and byte values use it. Seeing a number in all bases side by side makes those relationships obvious and saves you from reaching for a calculator or writing a quick script.

FAQ

What bases does it convert between?
Binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16). Enter a value in any one and the other three are shown instantly.
Can I paste a hex value with a 0x prefix?
Yes — a leading 0x, 0b or 0o prefix is accepted and ignored when you've selected the matching base.

Related tools