Hex Dump Viewer

See any text as a hex dump, or turn hex back into text. The dump shows 16 bytes per line, with the offset, the hex bytes in groups, and an ASCII column where non-printable bytes show as dots. Paste hex with or without spaces and 0x prefixes. Everything runs in your browser.

Your input

Text is read as UTF-8, so letters outside ASCII take more than one byte. Hex input may use spaces, new lines, and 0x prefixes.

Result

—
Bytes—
Lines—
Characters—

Enter text or hex to see the result.

Worked Example

Example, with the default text "Hello". In UTF-8, H is 0x48, e is 0x65, l is 0x6c, l is 0x6c again, and o is 0x6f, so the five letters are five bytes. The dump has one line: the offset is 00000000, the hex bytes are 48 65 6c 6c 6f, and the ASCII column shows Hello, because all five bytes are printable letters. The line reads "00000000 48 65 6c 6c 6f |Hello|", with the empty half of the line padded with spaces. Going the other way, pasting "48 65 6c 6c 6f" is cleaned to 48656c6c6f, split into five pairs, turned into five bytes, and decoded as UTF-8 back to Hello. A single letter A is byte 0x41, so it round-trips the same way.

Common Mistakes

Reading hex as decimal. Hex uses digits 0 to 9 and letters a to f, so 0x10 is 16, not 10. A byte value of ff is 255, the largest a single byte can hold, not 99.

Forgetting that one character can be several bytes. Plain ASCII letters are one byte each, but é is two bytes in UTF-8 and an emoji is four. Counting characters is not the same as counting bytes, and the dump counts bytes.

Pasting an odd number of hex digits. Hex comes in pairs, one pair per byte, so an odd count means a digit is missing. This tool flags it instead of guessing, so add the missing digit and try again.

Expecting the ASCII column to show every byte. Bytes outside the printable range, such as 0x00 or 0x0a, show as dots. The dot means the byte is there but has no printable character, not that the byte is missing.

Related Tools

Count the words in any text with the Sentence Counter, check a timestamp with the Unix Timestamp Converter, or browse every tool in the Tools hub.

Frequently Asked Questions

What is a hex dump?

A hex dump shows raw bytes as two-digit hexadecimal numbers, 16 bytes per line, with the offset at the start and the printable characters at the end. It is the standard way to look at binary data or to check exactly what bytes a piece of text contains.

Why 16 bytes per line?

Sixteen bytes is the long-standing convention, because it fits neatly on a line and the offset stays easy to read. Each line covers one row of 16 bytes, so the offset of the next line is 16 more than the last.

What do the dots in the ASCII column mean?

A dot stands for a byte that has no printable character, such as a zero byte, a new line, or a control code. Printable letters, digits, and punctuation show as themselves.

Can I paste hex with 0x prefixes?

Yes. The tool strips 0x prefixes, spaces, and new lines before decoding, so "0x48 0x65" and "48 65" both decode to the same bytes.

What encoding is used?

UTF-8. ASCII text is one byte per character, and characters outside ASCII use two to four bytes. Decoding also uses UTF-8, so text with accented letters round-trips correctly.