How to use the Hex Viewer
- Choose a file — it is read locally.
- Page through the hex dump, or change bytes per row.
- Search for text or a hex sequence like 504b0304.
What does this tool do?
A hex viewer shows the raw bytes behind a file: useful for checking a file's real type, debugging binary formats, spotting hidden data or confirming encodings. The detected type comes from the file's signature (magic number), not its extension. Files up to 64 MB are loaded.
The file never leaves your device.
Why use it?
- Magic-number detection.
- Text and hex search.
- No upload.
Use cases
- Check what a file really is, whatever its extension.
- Debug binary file formats and network captures.
- Find text strings hidden inside binary files.
Magic numbers you'll see often
The first bytes give away a file's real type:
| Type | First bytes |
|---|---|
| PNG | 89 50 4E 47 |
| 25 50 44 46 (%PDF) | |
| ZIP, DOCX, XLSX | 50 4B 03 04 (PK) |
| JPEG | FF D8 FF |
| GIF | 47 49 46 38 (GIF8) |
Common mistakes
- Trusting the file extension — rename a .exe to .jpg and it's still a program.
- Reading multi-byte numbers in the wrong byte order (endianness).
- Searching for text in the wrong encoding.
Privacy
Your files are processed entirely in your browser using built-in web technologies. They are not uploaded to our servers, and closing the page clears them from memory. There's no account to create and nothing to install.
Frequently asked questions
Why is a .docx file a ZIP?
Office files are ZIP archives of XML files, so they start with PK.
What do the dots in the ASCII column mean?
Bytes that aren't printable characters.
Is the file uploaded?
No, it's read on your device.
Content last updated . See how M2Toolkit works.