Hex Dump Calculator

Type or paste the text you want to view as a hex dump.

Result

00000000 54 68 65 20 71 75 69 63 6B 20 62 72 6F 77 6E 20 |The quick brown | 00000010 66 6F 78 20 6A 75 6D 70 73 20 6F 76 65 72 |fox jumps over|
30 bytes
2 rows

How it is calculated

The text is treated as raw bytes (UTF-8, as the browser sends it) and cut into rows of 16. Each row is OFFSET HH HH ... HH |ASCII|. The offset is the position of the row's first byte, written as 8 hexadecimal digits starting at 00000000 and growing by 16 (hex 10) per row. Then come the 16 bytes as two-digit upper-case hex values, and a gutter between vertical bars where a byte from 0x20 to 0x7E is shown as its character and every other byte (control codes, newlines, and each byte of a multi-byte character) as a dot. A short last row is padded with blanks so the gutters line up.

Besides the dump the tool reports the number of bytes and of rows, with the unit word in the page language. The count is of bytes, not characters, so one accented letter such as é takes 2 bytes. Empty input gives no result.

Worked example

Dump the text The quick brown fox jumps over. It is plain ASCII, so its 30 characters are 30 bytes. The first 16 bytes make row one, 00000000 54 68 65 20 71 75 69 63 6B 20 62 72 6F 77 6E 20 |The quick brown |, where 54 is T, 68 is h, 65 is e and 20 is a space. The remaining 14 bytes make row two, which starts at offset 00000010 (16 in hex): 66 6F 78 ... for "fox", ending with 72 for r, padded with two blanks. The tool reports 30 bytes in 2 rows.

Try this example →

Common mistakes

  • Counting characters instead of bytes: the text Café has 4 characters but 5 bytes, because é is stored as C3 A9 and appears as two dots in the gutter.
  • Reading a dot in the gutter as a real full stop. It also stands for newlines, tabs and any byte outside printable ASCII, so check the hex column to tell them apart (0A is a line feed, 09 a tab, 2E a real full stop).
  • Reading the offset as decimal. Row offsets are hexadecimal, so the second row starts at 00000010, which is byte 16, and the third at 00000020, which is byte 32.
  • Expecting a file dump. The tool shows exactly the text you type or paste, so line endings may differ from a saved file (a line break can appear as 0A or as 0D 0A depending on how it reached the tool).
  • Comparing with a tool that prints lower-case hex or groups bytes in pairs. The values are the same, but this layout is upper-case with a space between single bytes.

About this calculator

A hex dump is the classic way to inspect raw bytes: the data is laid out 16 bytes per row, with each row starting with the byte offset, followed by the 16 bytes shown as two-digit hexadecimal values, and finished with an ASCII gutter showing the printable characters (with non-printable bytes rendered as a dot).

This is the same layout produced by classic command-line tools like xxd or hexdump, and it's a everyday utility for programmers, reverse engineers, and forensic analysts who need to see the exact byte-level content of a file, network packet, or memory region — spotting file signatures, debugging binary formats, or checking for hidden non-printable characters that a normal text view would hide.

Was this helpful?

You can pick up to 3 reactions.

Comments (1)

  • Editorial team

    The dump works on bytes, not characters. A plain ASCII letter is one byte, but an accented letter like é takes two (C3 A9) and shows as two dots in the right-hand column. So the byte count can exceed the length of your text. Handy for spotting hidden encoding surprises. What odd character made you reach for a dump?

Popular calculators

All Calculators