Hex Dump

Click a byte to inspect
Offset Hex ASCII

Hex Dump viewer

This is a Hex Dump viewer in the browser: offset, bytes and an ASCII column, like xxd. A hex dump is the classic three-column view used by xxd and hexdump: an 8-digit offset, the bytes, and an ASCII column with dots for values outside 32–126. Identifiers such as Hex, ASCII, PNG, ZIP, ELF, UTF-8 and C stay untranslated. Show Example with text Hello World and 16 bytes/line starts 00000000 48 65 6C 6C 6F 20 57 6F 72 6C 64 and |Hello World|. PNG files begin 89 50 4E 47 0D 0A 1A 0A; ZIP local headers begin 50 4B 03 04.

How to use

  1. Paste text, switch Input to Hex, or drop a file (up to 10 MB). Processing stays in the browser.
  2. Pick 8 / 16 / 24 / 32 bytes per line. View Hex, Dec, Oct or Bin. Cap the table at 256 B–512 KB.
  3. Highlight 00 to spot padding. Search hex such as 89 50 4E 47. Click a byte for offset, Hex, Dec, Oct, Bin and ASCII.
  4. Copy Result copies the xxd text. C / Python / Go / Rust downloads an array of the displayed bytes.

Columns, inspector and stats

Offset is the byte index in hex (00000010 is 16). The middle column is the selected view; ASCII is optional. Stats show size, a magic guess (PNG, JPEG, GIF, PDF, ZIP, ELF, UTF-8/UTF-16 BOM), Shannon entropy in bits (0 = identical bytes, 8 = max randomness; values above about 7.5 often mean compressed or encrypted data), null count and printable percent.

Search, nulls and file headers

Search uses the same hex parser as Hex input (spaces and 0x ignored). Matches are counted and highlighted. Null highlight is for padding and C-string terminators, as in firmware dumps. Magic is only checked at offset 0 — a PNG renamed to .jpg still shows PNG.

Export formats

C writes unsigned char data[] plus data_len. Python writes data = bytes([...]). Go writes var Data = []byte{...}. Rust writes const DATA: &[u8] = &[...]. Arrays use the bytes currently shown, not bytes beyond the max-display cap. This page is a viewer: it does not write a patched file back to disk.

Frequently asked questions

  • Can I dump hex input? Yes. Set Input to Hex.
  • Does a file leave the computer? No. FileReader runs locally. The limit is 10 MB read, 512 KB shown.
  • Why is entropy useful? High entropy flags packed or encrypted regions; structured text sits much lower.
  • Hex to ASCII vs this page? Hex to ASCII is a decoder. Hex Dump keeps offsets and a grid.

Related tools

Decode the same bytes with Hex to ASCII. Inspect characters with Unicode Inspector. Flatten to one hex string with String to Hex.

Need a single hex string? String to Hex →