convert

Hex Dump

View the raw bytes of any file as an xxd-style hex dump with offsets and an ASCII column.

Runs on your deviceBatch readyPaste textNew

Shows the first 1 MB of large files.

Paste or drop

Paste text below, or drop a file instead.

0 chars · 0 lines
…or drop a file
Drag and drop, or choose files

Choose an output

View the raw bytes of any file as an xxd-style hex dump with offsets and an ASCII column.

Fine-tune

Optional — sensible defaults are already set.

Bytes per line

About Hex Dump

This tool shows the raw bytes of any file in an xxd-style layout: a hexadecimal offset, the bytes in hex grouped in pairs, and an ASCII column where non-printable bytes appear as dots. It is the quickest way to see what a file really contains, regardless of its extension.

When it helps

  • Identifying an unknown file from its magic number, such as 89 50 4E 47 for PNG or 50 4B 03 04 for ZIP.
  • Spotting a byte order mark, Windows line endings (0d 0a) or stray null bytes in a text file.
  • Inspecting a binary protocol message or a corrupted file header.

Tips

  • Choose 8, 16 or 32 bytes per line. 16 matches the default of xxd and hexdump -C, which makes it easier to compare output.
  • Only the first 1 MB of large files is shown. File signatures and headers are at the start, so that is usually enough.
  • You can also paste text to see its UTF-8 bytes, which helps when debugging encoding problems with accented letters or emoji.

Good to know

Quick answers about hex dump in your browser.

The first column is the position of the first byte on that line, in hexadecimal from the start of the file. With 16 bytes per line, offsets go 00000000, 00000010, 00000020 and so on.

The ASCII column only prints bytes from 0x20 to 0x7E. Control characters, and every byte of multi-byte UTF-8 characters, appear as dots.

Yes. There is no sign-up, no watermark and no limit on how many files you process.

No. Files are read and processed locally in your browser, so they never leave your device.

Related tools