Hex to Binary Converter

🔒 Runs in your browser — nothing is sent to a server

Convert a hexadecimal number to binary. Each hex digit expands to exactly four binary digits — for example 0xff becomes 11111111 and 0xa3 becomes 10100011. Common when working with hex dumps, MAC addresses, opcodes, MD5/SHA bytes and any data structure where you need to reason about individual bits. Long hex strings are converted using BigInt, so a full 64-bit value such as 0xffffffffffffffff produces 64 bits exactly.

Hexadecimal (16)

Allowed: 0–9, a–f

Binary (2)

Allowed: 0 and 1

Hexadecimal (16)Binary (2)

Quick reference table

Hexadecimal (16)Binary (2)
11
f1111
1010000
ff11111111
100100000000
fff111111111111
ffff1111111111111111

Glossary

Hexadecimal (base 16)

The hexadecimal numeral system uses sixteen digits: 0–9 and a–f, where a–f represent 10–15. Each hex digit maps to exactly four binary digits (one nibble), which makes hex the compact human-readable form of binary data. Memory addresses, MAC addresses, MD5/SHA hashes, RGB color codes such as #ff8800 and machine-code bytes are all conventionally written in hex.

Binary (base 2)

The binary numeral system uses only two digits — 0 and 1 — and is the native number system of every digital computer. Each binary digit (bit) represents a power of 2: the rightmost bit is 2^0 = 1, then 2^1 = 2, 2^2 = 4, 2^3 = 8 and so on. Eight bits form one byte. Binary underlies every memory cell, register and network packet.

Related tools