Binary to Hex Converter
Convert binary to hexadecimal online by grouping the bits in fours, shown step by step. Works with long bit strings, binary fractions and whole lists at once.
Runs in your browser · Nothing uploaded · No sign-up
Something not working, or missing a feature? Send feedback
About the Binary to Hex Converter
The Binary to Hex Converter shortens long bit strings into hexadecimal by splitting them into groups of four bits from the right and replacing each group with one hex digit. The groups are shown, so you can follow the conversion by hand, and binary fractions are grouped from the point outwards.
Conversion happens in your browser, so your files and records stay private.
How to use the Binary to Hex Converter
- Paste a binary number; spaces and underscores between bits are ignored, so 1111_0000 works.
- Read the hex result and the 4-bit groups it came from.
- Turn on the 0x prefix or byte grouping if you need them, then copy.
Hex digits and their 4-bit patterns
One hex digit always stands for exactly four bits, which is why the conversion works digit by digit.
| Hex | Binary | Decimal |
|---|---|---|
| 0 | 0000 | 0 |
| 1 | 0001 | 1 |
| 2 | 0010 | 2 |
| 3 | 0011 | 3 |
| 4 | 0100 | 4 |
| 5 | 0101 | 5 |
| 6 | 0110 | 6 |
| 7 | 0111 | 7 |
| 8 | 1000 | 8 |
| 9 | 1001 | 9 |
| A | 1010 | 10 |
| B | 1011 | 11 |
| C | 1100 | 12 |
| D | 1101 | 13 |
| E | 1110 | 14 |
| F | 1111 | 15 |
Examples
Input
11010110
Result
D6
Input
101101
Result
2D
Padded to 0010 1101.
Input
1010.1
Result
A.8
Input
1111000010100101 (Group bytes)
Result
F0 A5
Common mistakes
- Grouping from the left. Grouping 101101 from the left gives 1011 01, which is wrong. Always start at the right of the integer part.
Works well with the Binary to Hex Converter
- Hex to Binary Converter: expand hex back into bits.
- Binary to Decimal Converter: get the decimal value of the bits.
- Text to Binary: see the bits of a text.
Frequently asked questions
How do you convert binary to hex?
Split the bits into groups of four starting from the right, adding zeros on the left if needed. Replace each group with its hex digit from the table: 1101 0110 is D6.
Why groups of four?
16 = 2⁴, so each hex digit holds exactly four bits. That is also why no arithmetic is needed: binary to hex is a lookup per group.
What about bits after the point?
Group them in fours to the right of the point and pad with zeros on the right: 1010.1 becomes 1010.1000, which is A.8.
Related tools
JSON to CSV
Convert JSON arrays to CSV online with automatic column detection, nested object flattening and custom delimiters. Open the result in Excel or Sheets.
CSV to JSON
Convert CSV to a JSON array online with header detection, type inference and delimiter auto-detection. Turn spreadsheet exports into data for APIs and code.
JSON to XML
Convert JSON to well-formed XML online with a configurable root element and attribute support. Validate the input and download the XML file.
XML to JSON
Convert XML to JSON online, keeping attributes and turning repeated elements into arrays. Malformed XML is reported with its location.
JSON to YAML
Convert JSON to clean, human-readable YAML online. Turn API responses and package files into config for Kubernetes, Docker Compose or CI pipelines.
YAML to JSON
Convert YAML documents to formatted JSON online with syntax validation. Errors are reported by line, so broken indentation is quick to find and fix.