Skip to content
Technology

Binary / Hex Converter

Convert whole numbers between binary, octal, decimal and hexadecimal instantly.

Results

Binary
11111111
Octal
377
Decimal
255
Hexadecimal
FF

Handles non-negative whole numbers. Hex input accepts both upper and lower case.

Frequently asked questions

Why do computers use binary instead of decimal?

Digital circuits are built from transistors that are most naturally either "on" or "off" — two states map directly to binary's two digits (0 and 1), making it the fundamental language of computer hardware. Decimal, with ten digits, doesn't map as cleanly onto physical switches.

Why is hexadecimal used alongside binary in programming?

Hex is a convenient shorthand for binary because each hex digit represents exactly 4 binary digits (bits) — so a byte (8 bits) is always exactly 2 hex digits, making hex much more compact and readable than long strings of 1s and 0s while still mapping cleanly to binary.

What is octal used for today?

Octal (base 8) is less common now than it once was, but still appears in some contexts like Unix file permission notation (e.g. chmod 755) — each octal digit maps to exactly 3 binary bits.