How to use
- Select a file or drag and drop it onto the box — any file type works.
- Read the hex dump: the offset column, 16 bytes per line in hex, then the ASCII view.
- Scroll through the bytes to inspect headers, magic numbers, or encodings.
- Click Copy to put the entire hex dump on your clipboard.
Frequently asked questions
What does Hex Viewer show?
It shows the raw bytes of any file in hexadecimal, with an 8-digit offset column on the left and an ASCII view on the right. Printable bytes (0x20–0x7E) appear as characters; everything else shows as a dot. Each line holds 16 bytes with an extra gap after the 8th.
What file types can I open?
Any file works — images (JPG, PNG, WebP), documents (PDF), archives (ZIP), audio (MP3), video (MP4), or any binary or text file. The viewer simply reads the raw bytes, so the format does not matter.
Can it open very large files?
Yes, but for speed the dump is capped to the first 1 MB of the file. When a file is larger you will see a notice showing the displayed size (1 MB / 1048576 bytes) and the total file size.
Are my files uploaded anywhere?
No. The file is read and rendered entirely in your browser using local JavaScript. Nothing is uploaded to a server, so your data stays private on your device.
Can I edit bytes or save changes?
No. This is a read-only hex viewer, not a hex editor. You can view the raw bytes and copy the full dump to your clipboard, but you cannot modify the file or write changes back.
How do I check a file's magic number or header?
Open the file and look at the first bytes at offset 00000000. The leading hex values are the file signature or magic number — for example PDFs start with 25 50 44 46 (%PDF) and PNG files start with 89 50 4E 47.
About this tool
Free online hex viewer: open any file and inspect its raw bytes as a hex dump with offsets and an ASCII view. Runs 100% in your browser — nothing is uploaded.