Hex to Binary Converter
Convert hexadecimal to binary — each hex digit expands to exactly four bits.
Every hex digit becomes four binary digits, independently of the others: F is 1111, A is 1010, 7 is 0111.
How the hex to binary converter works
Every hex digit becomes four binary digits, independently of the others: F is 1111, A is 1010, 7 is 0111. Concatenate them and you have the binary.
Because the mapping is per-digit, there is no carrying and no arithmetic — which is why hex is the standard shorthand for binary data in memory dumps, color codes and MAC addresses.
Formula: value = Σ digitₖ × bᵏ
Worked examples
| Inputs | Converted | Note |
|---|---|---|
| FF | 11111111 | 11111111 |
| A | 1010 | 1010 |
| A color channel | 10000000 | 10000000 |
FAQFrequently asked questions
How do I convert hex to binary?
Expand each hex digit to its four-bit pattern and join them: F is 1111.
Is hex case-sensitive?
No. FF and ff are the same value.
What is FF in binary?
11111111 — eight ones, which is 255.
Why is hex used for colors?
Because each color channel is one byte, and a byte is exactly two hex digits. #FF8000 is three bytes.
How many bits is one hex digit?
Exactly four.
Where these figures come from
- NIST Digital Library of Mathematical Functions — reference definitions for elementary and special functions
- Wolfram MathWorld — definitions and formulas for every topic on this page
- NIST/SEMATECH e-Handbook of Statistical Methods — the statistical formulas (mean, variance, z, confidence intervals, sample size)
- Common Core State Standards — Mathematics — the terms and methods taught in US schools
Last checked: September 2026. Formulas are fixed by mathematics and do not change with tax years or regulations.