Hex to Binary
Tool processing runs in your browser — your pastes/files are not uploaded to our servers for processing. Ads (if shown) load separately and do not receive your tool inputs.Advertising · Details
Quick answer
To convert hexadecimal to binary, replace each hex digit with its 4-bit binary (0=0000 … F=1111) — for example FF = 1111 1111. TryDevSnip's converter does it instantly and exactly, even for long values, all in your browser.
Hex to binary chart
| Hex | Binary |
|---|---|
| 0 | 0000 |
| 1 | 0001 |
| 2 | 0010 |
| 4 | 0100 |
| 8 | 1000 |
| A | 1010 |
| C | 1100 |
| F | 1111 |
| 1F | 0001 1111 |
| FF | 1111 1111 |
Reverse or related: binary to hex · hex to decimal · binary to decimal · all bases
Worked example: 0xA5
Every positional number system works the same way — each digit is multiplied by the base raised to its position, counting from zero on the right. For 0xA5 in hexadecimal:
| Digit | Place | Weight | Contribution |
|---|---|---|---|
| A | 161 | 16 | 160 |
| 5 | 160 | 1 | 5 |
| Total (decimal) | 165 | ||
Written in binary that is 0b10100101.
Quick reference
| Decimal | hexadecimal | binary |
|---|---|---|
| 1 | 1 | 1 |
| 2 | 2 | 10 |
| 4 | 4 | 100 |
| 8 | 8 | 1000 |
| 10 | A | 1010 |
| 16 | 10 | 10000 |
| 32 | 20 | 100000 |
| 64 | 40 | 1000000 |
| 100 | 64 | 1100100 |
| 128 | 80 | 10000000 |
| 255 | FF | 11111111 |
| 256 | 100 | 100000000 |
Things that trip people up
- Prefixes are notation, not value.
0b1010,0o12,0xAand10can all denote the same quantity. Strip the prefix before parsing, or tell the parser which base you meant. - Leading zeros can change the base. In several languages a leading
0historically meant octal, so010parsed as 8 rather than 10. Passing an explicit radix avoids the whole class of bug. - Hex letters are case-insensitive.
0xffand0xFFare the same number; only presentation differs. - Grouping is for humans. Binary is usually read in nibbles of four (
1111 1111) because each nibble maps to exactly one hex digit — which is why hex is the usual shorthand for binary data.
Frequently asked questions
How do I convert hex to binary?
Replace each hex digit with its 4-bit binary (0=0000 … F=1111) and join them. For example FF = 1111 1111. Or paste it into the converter and read the binary instantly.
Why is each hex digit 4 bits?
Hexadecimal is base 16 = 2⁴, so every hex digit maps to exactly four binary digits — which is why hex is a compact way to write binary.
What is FF in binary?
FF (hex) is 11111111 in binary — eight 1-bits, one full byte.
Is my input uploaded?
No. TryDevSnip converts locally in your browser. Nothing you type is uploaded to our servers for processing.