Hex to Binary Converter
Convert hex to binary online: every hex digit becomes four bits, shown step by step. Group the bits by nibble, add a 0b prefix or convert a whole list.
Runs in your browser · Nothing uploaded · No sign-up
Something not working, or missing a feature? Send feedback
About the Hex to Binary Converter
The Hex to Binary Converter expands every hexadecimal digit into its four bits, so you can see which flags of a register or bit mask are set. The step view shows the 4-bit pattern of each digit, and the bits can be grouped by nibble for reading.
Conversion happens in your browser, so your files and records stay private.
How to use the Hex to Binary Converter
- Type a hex value such as 7F or 0xDEADBEEF, or paste one per line.
- Turn on "Group by 4 bits" to separate the nibbles, and the 0b prefix if your code needs it.
- Read the bits under each hex digit in the step view, then copy the result.
Hex to binary lookup
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
7F
Result
1111111
Input
7F (Group by 4 bits)
Result
111 1111
Input
DEADBEEF (Group by 4 bits)
Result
1101 1110 1010 1101 1011 1110 1110 1111
Input
3.C
Result
11.11
Common mistakes
- Writing a digit with fewer than 4 bits. Inside a number every digit needs all four bits: 0x21 is 0010 0001, not 10 1. Only the very first digit may lose its leading zeros.
Works well with the Hex to Binary Converter
- Binary to Hex Converter: compress bits back into hex.
- Hex to Decimal Converter: get the decimal value.
- Subnet Calculator: see subnet masks bit by bit.
Frequently asked questions
How do you convert hex to binary?
Replace each hex digit with its 4-bit pattern: 7 is 0111 and F is 1111, so 7F is 0111 1111. Leading zeros of the first group can be dropped, giving 1111111.
How do I check which bits of a mask are set?
Convert the mask and count from the right, starting at bit 0. 0x14 is 10100, so bits 2 and 4 are set.
Does it keep leading zeros?
Leading zeros of the whole number are dropped, as with decimal numbers. To see all 8, 16 or 32 bits, convert from decimal with a bit width, or count the digits: each hex digit is four bits.
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.