Hex Viewer
View any file or text as a classic hex dump with offsets, hex bytes and a printable text column.
Drag & drop any file here, or click to browse
No uploads. Your file is read and decoded on your device.
Nothing to dump yet.
Paste text or drop a file to see the hex dump.
How it works
This hex viewer reads your text or file into a byte array with the FileReader and
TextEncoder APIs and prints a classic hexdump -C style listing: a byte offset,
the raw bytes in hexadecimal, and a printable text column. Everything happens inside this
page — the file is never uploaded, so you can safely inspect private documents, binaries,
keys or crash dumps.
Switch between 8, 16 and 32 bytes per row, hexadecimal or decimal offsets, upper or lower
case hex, and an ASCII or Latin-1 text column. The search box finds either plain text or a
run of hex bytes (spaces optional) anywhere in the file and highlights the rows that contain
it — handy for spotting magic numbers like 89 50 4E 47 for PNG or
25 50 44 46 for PDF. Very large files are dumped up to the first 64 KB to keep
the page responsive; the search still scans every byte.
Frequently asked questions
How do I view a file in hexadecimal?
Drop the file onto this page (or paste text) and it is read straight into memory and printed as a hex dump: an eight-digit byte offset, the raw bytes in hexadecimal, and a printable text column, exactly like the classic hexdump -C or xxd output. You can switch between 8, 16 and 32 bytes per row, hexadecimal or decimal offsets, upper or lower case hex, and an ASCII or Latin-1 text column.
Is my file uploaded anywhere?
No. The hex viewer runs entirely in your browser using the FileReader API, so the bytes never leave your device and no server ever sees them. That makes it safe for private documents, key material, crash dumps and proprietary binaries — you can even disconnect from the network and the page keeps working.
What are the first bytes of a PNG or PDF file?
A PNG starts with the magic number 89 50 4E 47 0D 0A 1A 0A, and a PDF starts with 25 50 44 46 (the text %PDF). Type those bytes into the search box with the mode set to Hex bytes and the viewer highlights every row that contains them, which is a quick way to confirm a file's real format regardless of its extension.