Hex Dump Viewer

View any file as a hex dump in your browser. Drop one file or several — images, executables, documents, anything — and see the familiar three columns: offset, hex bytes and ASCII, with 8, 16 or 32 bytes per row. The tool identifies the real file type from its first bytes, stays fast on large files, and lets you download the dump as text. It's free, runs in your browser, and your files never leave your device.

Common file signatures

First bytes (hex)File type
89 50 4E 47PNG
FF D8 FFJPEG
25 50 44 46PDF (%PDF)
50 4B 03 04ZIP, DOCX, XLSX, JAR
47 49 46 38GIF
7F 45 4C 46ELF executable
EF BB BFUTF-8 byte-order mark

When to use it

  1. Check what a file really is when its extension is wrong.
  2. Look for a byte-order mark or stray bytes breaking a text file.
  3. Inspect a binary file format while writing a parser.
  4. Compare the headers of two files that should be the same.

How to Use

  1. Drop one or more files, or type text.
  2. Choose 8, 16 or 32 bytes per row.
  3. Scroll the dump and check the detected file type.
  4. Download the dump, or all of them as a ZIP.

Features

  1. Offset, hex and ASCII columns
  2. 8, 16 or 32 bytes per row
  3. File signature detection
  4. Smooth on large files
  5. Multiple files and ZIP export
  6. 100% client-side

FAQs

How do I read a hex dump?

The left column is the position in the file in hex, the middle is each byte in hex, and the right shows printable bytes as characters and the rest as dots.

Can it open large files?

Yes. Only the visible rows are drawn, so even very large files scroll smoothly.

How does it detect the file type?

From the first bytes — the 'magic number' — which identifies PNG, JPEG, PDF, ZIP and other formats regardless of the file name.

Can I dump several files?

Yes. Drop them together, switch between them, and download all dumps as a ZIP.

Are my files uploaded?

No. They're read in your browser.

Technical Details

The viewer reads files with the File API into a byte array and prints the classic hexdump -C layout: an 8-digit hexadecimal offset, the bytes in hex with an extra gap between the two halves of a 16-byte row, and an ASCII column where printable characters appear as themselves and everything else as a dot. Rows can hold 8, 16 or 32 bytes and hex can be upper or lowercase. Rendering a dump line for every 16 bytes of a large file would create millions of DOM nodes, so only the rows in view are drawn, positioned inside a container of the full height, which keeps scrolling smooth for files of hundreds of megabytes. The first bytes are compared with well-known file signatures — PNG, JPEG, PDF, ZIP, GIF, ELF, Windows executables, gzip, RIFF and the UTF-8 byte-order mark — to show what the file really is, regardless of its extension. Several files can be loaded at once, and dumps can be downloaded individually or together as a ZIP.

Developer Tools

Developer Tools

  • Text Encoding Inspector
  • Punycode Converter
  • Email Obfuscator
  • UUID Validator
  • ULID Generator
  • SemVer Compare
  • Bitwise Calculator
  • MIME Type Lookup