Binary to Hex Dump Converter
Convert binary bytes or a continuous binary bitstream into hexadecimal and format the result as a readable hex dump. Generate byte offsets, hexadecimal columns and optional ASCII previews while validating every input bit and preserving leading zero bits.
—
—
—
—
Binary to Hex Dump Converter
The Binary to Hex Dump Converter takes binary byte data and produces hexadecimal output or a formatted hex dump. You can enter individual eight-bit groups such as 01001000 01100101 or paste a continuous bitstream such as 0100100001100101.
The converter validates the binary input, divides it into complete bytes, converts each byte into two hexadecimal digits and can arrange the converted values into offset-based dump lines with an optional ASCII preview.
This is useful when analyzing binary data, constructing test vectors, studying file structures, converting protocol fields, preparing debugging output or comparing binary values with hexadecimal representations.
How to Convert Binary to a Hex Dump
Enter binary data as eight-bit groups or as one continuous sequence. Select the desired output style and choose how many bytes should appear on each dump line.
Press Convert Binary to Hex Dump. The tool converts every binary byte into hexadecimal and generates offsets and an ASCII column when those options apply.
Binary:
01001000 01100101 01101100 01101100 01101111
Hex:
48 65 6C 6C 6F
Hex dump:
00000000 48 65 6C 6C 6F |Hello|Binary Byte to Hexadecimal Conversion
One binary byte consists of eight bits. Eight bits map directly to two hexadecimal digits because each hexadecimal digit represents four bits.
| Binary | Decimal | Hex |
|---|---|---|
| 00000000 | 0 | 00 |
| 00000001 | 1 | 01 |
| 00001111 | 15 | 0F |
| 00010000 | 16 | 10 |
| 01000001 | 65 | 41 |
| 01111111 | 127 | 7F |
| 10000000 | 128 | 80 |
| 11111111 | 255 | FF |
Convert 8-Bit Binary Groups to Hex
When binary input is already divided into eight-bit groups, each group can be converted independently into one hexadecimal byte.
Binary:
11011110 10101101 10111110 11101111
Hex:
DE AD BE EFLeading zeros are significant. Binary 00000001 must produce hexadecimal 01 rather than just 1 because it represents a complete byte.
Convert a Continuous Binary Bitstream to Hex
Binary data is sometimes supplied without spaces. The converter can divide a continuous sequence into eight-bit bytes automatically when the total bit count is divisible by eight.
Binary:
11011110101011011011111011101111
Split into bytes:
11011110 10101101 10111110 11101111
Hex:
DE AD BE EFA continuous bitstream containing 31 or 33 bits cannot represent an exact number of bytes and is rejected instead of being silently padded.
What Is a Hex Dump?
A hex dump is a human-readable view of binary data. It normally contains an offset or address, hexadecimal byte values and sometimes a printable ASCII interpretation of those bytes.
00000000 48 65 6C 6C 6F 20 57 6F |Hello Wo|
00000008 72 6C 64 |rld|The hexadecimal values are the actual byte data. The offset identifies where the line begins, while the ASCII column is only a convenient preview.
Hex Dump Offsets
Offsets indicate the position of a byte relative to the beginning of the data or another chosen starting address. This converter uses hexadecimal offsets in generated dump output.
16 bytes per line:
00000000 first 16 bytes
00000010 next 16 bytes
00000020 next 16 bytesHexadecimal 10 equals decimal 16, so the offset advances by 0x10 when each line contains sixteen bytes.
Custom Starting Offset
A dump does not always need to begin at offset zero. When binary data is known to originate from a particular position in a file, memory image or packet, you can enter a custom starting offset.
Starting offset:
0x100
16 bytes per line:
00000100 ...
00000110 ...
00000120 ...The offset changes only the displayed addresses. It does not alter the underlying byte values.
ASCII Preview in a Hex Dump
Many hex dump formats include a text column showing printable ASCII characters. Bytes outside the ordinary printable ASCII range are usually represented by a dot.
Hex:
48 65 6C 6C 6F 00 FF
ASCII preview:
Hello..48 through 6F in this example form printable letters, while 00 and FF are displayed as dots because they are not printable ASCII characters.
Classic Hex Dump vs xxd-Style Output
Hex dump utilities use several layouts. This converter provides a classic byte-oriented layout as well as an xxd-style representation.
Classic:
00000000 48 65 6C 6C 6F |Hello|
xxd style:
00000000: 4865 6c6c 6f HelloBoth forms represent the same bytes. The main difference is presentation, including grouping, separators and ASCII placement.
Binary to Hex Example: Letter A
Binary:
01000001
Split into nibbles:
0100 0001
Hex:
4 1
Final byte:
41Hexadecimal 41 is decimal 65 and represents the ASCII letter A when the byte is interpreted as text.
Binary to Hex Example: FF
Binary:
11111111
First nibble:
1111 = F
Second nibble:
1111 = F
Hex:
FF
Decimal:
255Binary to Hex Dump Example: DE AD BE EF
Binary:
11011110
10101101
10111110
11101111
Hex bytes:
DE AD BE EF
Dump:
00000000 DE AD BE EF |....|The ASCII preview shows dots because those byte values do not correspond to ordinary printable ASCII characters.
Why Binary Must Be Byte Aligned
A byte-oriented hex dump represents complete bytes. Therefore the binary input must contain complete groups of eight bits.
Valid:
01000001
→ 8 bits
→ 1 byte
→ 41
Valid:
0100000101000010
→ 16 bits
→ 2 bytes
→ 41 42
Invalid:
0100000
→ 7 bits
→ incomplete byteThe converter does not automatically add zeros to incomplete binary values because padding could change the intended data.
Binary, Hexadecimal and Bytes
Binary and hexadecimal are simply different textual representations of the same numeric byte values. Converting between them does not change the underlying data.
Binary:
10100101
Hex:
A5
Decimal:
165
All represent the same byte.Hexadecimal is generally easier for humans to read because it compresses eight binary digits into only two characters.
Common Uses for Binary to Hex Dump Conversion
Binary-to-hex-dump conversion is useful in embedded development, networking, reverse engineering, digital forensics, binary file analysis, protocol research and computer science education.
Developers can use it to convert bit-level examples into byte-oriented debugging output. Network engineers may inspect packet bytes, while embedded developers can convert register or memory values into a format that is easier to compare against hexadecimal documentation.
Typical use cases
Common applications include packet inspection, firmware analysis, register debugging, file-header study, byte-array conversion, protocol testing, memory-layout analysis and verifying binary examples against hexadecimal specifications.
Common Binary to Hex Dump Mistakes
One frequent mistake is omitting leading zeros. Binary 00000101 represents the byte 05. Reducing it to binary 101 loses the explicit byte width and can create ambiguity when several values are concatenated.
Another mistake is treating the ASCII preview as part of the actual data. The ASCII column is generated from the hex bytes solely to make printable content easier to recognize.
It is also important to remember that a displayed offset is metadata. Changing the starting offset does not change the bytes themselves.
Binary to Hex Dump Converter Limitations and Notes
The converter expects byte-oriented binary input. It does not guess how to pad incomplete binary values. Continuous input must therefore be divisible by eight bits.
The ASCII preview uses the conventional printable ASCII range from decimal 32 through 126. Other byte values are represented with a dot rather than being interpreted as UTF-8 or another character encoding.
The generated dump represents the input bytes exactly and does not infer integer endianness, file type, instruction encoding or character encoding.