Hex To Binary
Free online Hex to Binary Converter that instantly expands hexadecimal into binary code.
Share on Social Media:
The Hex to Binary Converter instantly expands hexadecimal into binary by turning each hex digit into its four-bit group. When you need to see the individual bits behind a hex value — for bitmasks, flags, or hardware registers — this tool gives you the exact binary in one click.
The Clean Logic of Hex to Binary
Hexadecimal and binary fit together perfectly: because hex is base-16 and four bits encode 16 values, every single hex digit expands to exactly four binary bits. There's no ambiguity and nothing to calculate beyond a lookup — A is 1010, 5 is 0101, F is 1111. String the groups together and you have the full binary.
How to Convert
- Enter the hexadecimal value.
- Convert — each hex digit expands into four bits.
- Copy the binary output.
The Hex Digit to Binary Table
| Hex | Binary | Hex | Binary |
|---|---|---|---|
| 0 | 0000 | 8 | 1000 |
| 5 | 0101 | A | 1010 |
| 9 | 1001 | F | 1111 |
So hex A5 becomes 1010 0101 → 10100101. The letters A–F simply continue the count past 9, representing decimal 10 through 15 as 4-bit groups.
Why Leading Zeros Matter
Each hex digit must expand to a full four bits, leading zeros included. Hex 5 is 0101, not 101 — dropping that zero would shift every later bit out of position and corrupt the value. The converter always preserves the full nibble, keeping bit positions correctly aligned, which is essential when those positions represent specific flags or settings.
When You Need the Raw Bits
Hex is convenient precisely because it hides bits, but sometimes you need them exposed. Inspecting a bitmask, toggling a single flag in a hardware register, or analyzing a permission value all require seeing the individual 1s and 0s. Converting hex to binary brings those hidden bits into view so you can read or modify them directly.
Accurate, Free, and Private
The mapping is fixed and lossless, computed entirely in your browser with nothing stored. Convert as much hex as you need, free.
Frequently Asked Questions
How do I convert hex to binary?
Expand each hexadecimal digit into its four-bit binary equivalent and join them. For example, hex A is 1010 and hex 5 is 0101, so A5 becomes 10100101. The tool does this digit by digit instantly.
Why does each hex digit become four bits?
Hexadecimal is base-16 and four bits can represent 16 values, so every hex digit corresponds to exactly one 4-bit group. This one-to-one mapping makes hex-to-binary conversion clean and unambiguous.
What do the hex letters A–F mean in binary?
They continue counting past 9: A is 1010 (decimal 10), B is 1011, C is 1100, D is 1101, E is 1110, and F is 1111 (decimal 15). Each is just a 4-bit binary value.
Should I keep leading zeros?
Yes, within each nibble. Each hex digit always expands to a full four bits, including leading zeros — hex 5 is 0101, not 101 — so the bit positions stay aligned. The converter preserves them.
Why convert hex back to binary?
Binary shows the individual bits, which matters when you need to inspect or manipulate specific flags, bitmasks, or hardware registers that hex hides by grouping bits together.
Is the conversion exact?
Yes. The hex-to-binary mapping is fixed and lossless, so the binary output represents precisely the same value as the hex input.
Is my data private?
Yes. Conversion runs in your browser and nothing is uploaded or stored.
Is this tool free?
Yes — free, instant, and unlimited, with no signup.