BIN→HEX Binary Utility

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 ✓ Hex Dump Output ✓ Offset Columns ✓ ASCII Preview ✓ Continuous Bits ✓ Strict Validation
BIN
Binary → Hex Dump
● Ready
Enter 8-bit binary bytes or a continuous bitstream. Spaces, line breaks, commas, underscores and common separators are supported.
Hex Dump Options
Enter a decimal offset such as 0 or 256, or hexadecimal such as 0x100.
Binary byte rule: Each output hexadecimal byte represents exactly eight input bits. For example, binary 01000001 becomes hexadecimal 41. A continuous bitstream must therefore contain a number of bits divisible by eight.
Hex Dump Conversion Result Converted
Hex Dump
Binary Bytes
Total Bits
Hex Digits
Dump Lines
First Byte
Last Byte
Start Offset
Status
Extracted Hexadecimal Bytes
Byte-by-Byte Conversion
Conversion Details

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
00000000000
00000001101
00001111150F
000100001610
010000016541
011111111277F
1000000012880
11111111255FF

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 EF

Leading 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 EF

A 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 bytes

Hexadecimal 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 Hello

Both 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: 41

Hexadecimal 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: 255

Binary 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 byte

The 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.

Binary to Hex Dump Converter FAQs

What does a Binary to Hex Dump Converter do?
It converts binary byte values into hexadecimal and optionally arranges those bytes in a formatted dump containing offsets and an ASCII preview.
How many binary bits make one hex byte?
Eight binary bits make one byte, and that byte is represented by two hexadecimal digits.
What is 01000001 in hexadecimal?
Binary 01000001 equals hexadecimal 41 and decimal 65.
What is 11111111 in hexadecimal?
Binary 11111111 equals hexadecimal FF.
Can I paste a continuous binary string?
Yes. Continuous binary input is supported when its total length is divisible by eight.
Can I enter spaces between binary bytes?
Yes. Eight-bit groups can be separated using spaces, line breaks, commas, semicolons, underscores or several other common separators.
What happens if a binary byte contains fewer than 8 bits?
The converter reports an error because a byte-oriented hex dump requires complete eight-bit values.
Does the converter automatically add leading zeros?
No. In explicit byte-group mode each value must already contain exactly eight bits. This prevents accidental modification of the supplied data.
Can I generate a hex dump with offsets?
Yes. Classic Hex Dump and xxd-style output include hexadecimal offsets.
Can I change the starting offset?
Yes. Enter a decimal value such as 256 or hexadecimal value such as 0x100 in the Starting Offset field.
Can I change the number of bytes per line?
Yes. You can choose 8, 16, 24 or 32 bytes per dump line.
What does the ASCII column show?
It shows printable ASCII characters corresponding to each byte. Bytes outside the printable ASCII range are displayed as dots.
Can I output only hexadecimal bytes?
Yes. Select Hex Bytes Only to get values such as 48 65 6C 6C 6F without offsets or ASCII output.
Can I get continuous hexadecimal output?
Yes. Continuous Hex removes spaces and produces a sequence such as 48656C6C6F.
Does converting binary to hex change the data?
No. Binary and hexadecimal are different representations of the same byte values.
Scroll to Top