Binary to Hex
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 binary to hexadecimal, group the bits into fours from the right and turn each group into one hex digit (1111=F) — for example 11111111 = FF. TryDevSnip's converter does it instantly and exactly, even for long bit strings, all in your browser.
Binary to hex chart
| Binary | Hex |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 10 | 2 |
| 100 | 4 |
| 1000 | 8 |
| 1010 | A |
| 1100 | C |
| 1111 | F |
| 11111 | 1F |
| 11111111 | FF |
Reverse or related: hex to binary · binary to decimal · hex to decimal · all bases
Worked example: 0b11011110
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 0b11011110 in binary:
| Digit | Place | Weight | Contribution |
|---|---|---|---|
| 1 | 27 | 128 | 128 |
| 1 | 26 | 64 | 64 |
| 0 | 25 | 32 | 0 |
| 1 | 24 | 16 | 16 |
| 1 | 23 | 8 | 8 |
| 1 | 22 | 4 | 4 |
| 1 | 21 | 2 | 2 |
| 0 | 20 | 1 | 0 |
| Total (decimal) | 222 | ||
Written in hexadecimal that is 0xDE.
Quick reference
| Decimal | binary | hexadecimal |
|---|---|---|
| 1 | 1 | 1 |
| 2 | 10 | 2 |
| 4 | 100 | 4 |
| 8 | 1000 | 8 |
| 10 | 1010 | A |
| 16 | 10000 | 10 |
| 32 | 100000 | 20 |
| 64 | 1000000 | 40 |
| 100 | 1100100 | 64 |
| 128 | 10000000 | 80 |
| 255 | 11111111 | FF |
| 256 | 100000000 | 100 |
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 binary to hex?
Group the bits into fours from the right (pad the left with zeros) and turn each group into one hex digit (1111=F). For example 11111111 = FF. Or paste it into the converter and read the hex instantly.
Why group binary in fours?
Because 16 = 2⁴, four binary digits map to exactly one hex digit — so grouping bits in fours converts cleanly.
What is 11111111 in hex?
11111111 (binary) is FF in hexadecimal — one full byte.
Is my input uploaded?
No. TryDevSnip converts locally in your browser. Nothing you type is uploaded to our servers for processing.