Hexadecimal to Binary Converter
Parse and convert raw hexadecimal dumps to binary. Features automatic separator stripping and 4-bit chunk formatting for easy debugging.
About
When analyzing low-level system memory, network packet captures (Wireshark), or firmware binaries, data is often presented as hexadecimal strings separated by colons or spaces (e.g., FF:A0:1C). Manually cleaning these strings to find specific binary flags is tedious and error-prone.
This tool is engineered to handle "dirty" input. It automatically strips common delimiters (spaces, colons, dashes) and converts the sanitized hex string into a binary stream. The output is formatted into 4-bit nibbles, aligning with the hexadecimal structure, which significantly improves readability when searching for specific bit patterns or flags within a larger data structure.
Formulas
Hexadecimal is a base-16 system, while binary is base-2. Since 16 = 24, exactly one hexadecimal digit maps to exactly four binary digits (a nibble).
This direct mapping allows for O(n) conversion complexity without needing intermediate decimal calculation, making it efficient for long strings.
Reference Data
| Hex Digit | Binary Nibble | 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 |