HEX to Binary
Convert hexadecimal to binary — every hex digit expands to exactly 4 bits.
How to use HEX to Binary
- Enter the hex value — e.g. FF or 2a (case doesn't matter, no 0x prefix needed).
- Read the binary expansion instantly: FF → 11111111. Space-separated values convert independently.
- Check the error line if a character isn't a valid hex digit (0–9, A–F) — the exact token is named.
- Click “Copy result” to grab the bit pattern for your notes or code.
What is HEX to Binary?
A hex to binary converter expands a base-16 number into base 2. The two bases are natural partners: 16 is 2⁴, so each hex digit corresponds to exactly four bits. F is 1111, A is 1010, 2 is 0010 — so hex 2A is binary 101010 (00101010 with padding).
That clean 1-to-4 mapping is why programmers write hex at all: 11111111 is unreadable at a glance, FF is not, and they are the same byte. Converting hex to binary shows you the actual bit pattern behind compact hex notation — essential for bit masks, flags and hardware registers.
About the HEX to Binary
Type or paste hex — with or without spaces between values — and the binary expansion appears instantly. Both uppercase and lowercase digits work (FF, ff and fF are the same value).
Typical jobs: expanding a color channel (hex E6 → 11100110) to see its bits, decoding a flags byte from a log file (0x93 → 10010011 — bits 0, 1, 4 and 7 set), checking a network mask, or doing digital-logic homework. Because each digit maps independently, you can also learn the 16 nibble patterns from the output — after a while you convert small values by sight.
BigInt math keeps long values exact, invalid digits are flagged by name, and everything runs in your browser.