TontonTools

HEX to Binary

Convert hexadecimal to binary — every hex digit expands to exactly 4 bits.

100% Free No signup Privacy-friendly Binary & Number Tools
Updated Sep 2026

Share X / Twitter Facebook LinkedIn WhatsApp

How to use HEX to Binary

  1. Enter the hex value — e.g. FF or 2a (case doesn't matter, no 0x prefix needed).
  2. Read the binary expansion instantly: FF → 11111111. Space-separated values convert independently.
  3. Check the error line if a character isn't a valid hex digit (0–9, A–F) — the exact token is named.
  4. 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.

Frequently Asked Questions

Because 16 = 2⁴: four binary digits have exactly 16 combinations (0000–1111), one per hex digit. That makes hex↔binary the only base conversion you can do digit-by-digit with a lookup table.
11111111 — eight 1s, one full byte, decimal 255. It is why FF appears at full intensity in hex colors (#FFFFFF is white) and as the all-bits-set mask in code.
Replace each hex digit with its 4-bit pattern: 3C → 3 = 0011, C = 1100 → 00111100. No arithmetic needed — just the 16-row lookup table.
Those are just notation prefixes from programming (0x2A) and CSS colors (#FF6600). Strip the prefix and paste the digits — the value is the same.
A=10, B=11, C=12, D=13, E=14, F=15 — in binary: 1010, 1011, 1100, 1101, 1110, 1111. Hex needs 16 symbols and the alphabet supplies the last six.

We use cookies for analytics and to keep the tools free via ads. See our Privacy Policy.