Hex Dump / Hex Viewer

See the bytes of any file, xxd style.

Runs in your browser Instant No sign-up
Bytes per line
File
Hex dump

Paste, type or drop a file — output appears as you type.

Waiting for input
Processed locally · nothing is uploadedProcessed locally

How to use the hex viewer

  1. Choose a file, or drop one onto the left pane. Any type works: images, PDFs, archives, executables, database files.
  2. Bytes per line: 8, 16 (the default, like xxd) or 32.
  3. Uppercase switches the hex digits to A–F.
  4. Copy or Download the dump as dump.txt.

The status bar shows the file name, its size and the type your browser reports for it.

Example

A text file containing Hello, world! and a line break looks like this:

00000000: 4865 6c6c 6f2c 2077 6f72 6c64 210a       Hello, world!.

48 is H, 65 is e, and the final 0a is the line feed, shown as a dot because it isn’t printable.

Reading a dump

  • Offsets are hexadecimal: the second line of a 16-byte dump starts at 00000010, which is byte 16.
  • Pairs: bytes are grouped two by two, the way xxd prints them. Read multi-byte numbers carefully — most file formats store them little-endian, lowest byte first.
  • ASCII column: printable characters from space to ~ appear as themselves; everything else, including UTF-8 bytes of accented letters, shows as a dot.

Things worth spotting

  • Byte-order marks: a text file that starts with ef bb bf has a UTF-8 BOM, which some parsers reject; ff fe or fe ff mean UTF-16.
  • Line endings: 0d 0a pairs are Windows line endings, a lone 0a is Unix — handy when a script fails on a file edited on another system.
  • Padding and zeros: long runs of 00 often mark unused space in a binary format, or a file that was truncated and padded by a failed transfer.
  • Embedded text: readable words in the ASCII column of an executable or a database file are usually strings, paths or table names stored inside it.

When to use it

Use the viewer to check what a file really is when its extension lies, to find the header of a corrupted download, to look at the bytes a parser complains about, or to confirm that a file starts with a byte-order mark. To convert a few bytes between hex, Base64 and code literals, use the Binary Data Converter; to hash a piece of text with SHA-256 or MD5, use the hash generator; to embed an image as text, use Image to Base64.

Frequently asked questions

Is the file uploaded?

No. The file is read by your browser and dumped on your device. Nothing is sent anywhere, so it is safe for private keys, firmware images or documents you can't share.

What does each line show?

The offset of the first byte in hexadecimal, then the bytes as hex pairs grouped two at a time (the same layout as xxd), then the same bytes as ASCII, with a dot for every byte that is not a printable character.

Is there a size limit?

Files up to 20 MB can be opened, and the first 2 MB are dumped, which is about 9 MB of text. Larger files show a note. The editor shows the beginning of a big dump, and Copy and Download include all of it.

How do I recognise a file type from the dump?

Look at the first bytes, the file's magic number: 89 50 4E 47 is a PNG, FF D8 FF a JPEG, 25 50 44 46 (%PDF) a PDF, 50 4B 03 04 (PK) a ZIP — which also covers DOCX, XLSX and JAR files — and 7F 45 4C 46 an ELF executable.

Can I edit the bytes?

Not here — the viewer is read-only. To change bytes, copy them into the Binary Data Converter, edit the hex and convert it back to Base64 or a byte array.

Last updated