Hex Viewer
Drop a file to see its raw bytes in the familiar offset | hex | ASCII layout, plus its detected type and size.
Processed locally in your browser· Your data stays in your browser.
What is Hex Viewer?
A hex dump shows the exact bytes of a file: each line starts with the byte offset, then sixteen bytes in hexadecimal (grouped 8+8 for readability), then the same bytes as ASCII characters where printable. It is the fastest way to check magic numbers, spot hidden text inside binary files, see line endings (0D 0A versus 0A) or a byte-order mark.
This viewer reads only the first part of the file (4 KB by default, up to 1 MB), so even very large files open instantly. The output has the same layout as hexdump -C, can use lowercase or uppercase digits, and can be copied or downloaded as a text file. The detected file type from the signature table is shown next to the size.
How does it work?
- Drop a file on the drop zone.
- Set how many bytes to show (16 to 1,048,576) and lowercase or uppercase hex.
- Read the dump: offsets on the left, hex in the middle, ASCII on the right.
- Copy the dump or download it as a .txt file.
Common use cases
- Checking the first bytes of a file to confirm its format (for example 89 50 4E 47 for PNG).
- Finding out whether a text file uses Windows (CRLF) or Unix (LF) line endings, or starts with a BOM.
- Spotting readable strings such as paths or error messages hidden inside a binary.
- Documenting a bug in a binary file format by pasting a small dump.
Examples
Drop a file to see its raw bytes in the familiar offset | hex | ASCII layout, plus its detected type and size.
Privacy
Hex Viewer runs entirely in your browser. The text or files you provide are processed on your device and are not uploaded, logged or stored on our servers.
Limitations
Only the first part of the file is shown (maximum 1,048,576 bytes) and the viewer is read-only: it does not search or edit. ASCII column shows printable ASCII only; other bytes appear as dots.
Frequently asked questions
How do I read a hex dump line?
The first column is the offset of the line’s first byte in hex, the middle columns are 16 bytes as two-digit hex values, and the right column shows the same bytes as text with dots for non-printable ones.
How can I tell CRLF from LF?
Look for 0D 0A (Windows CRLF) versus a lone 0A (Unix LF) at the end of lines in the hex column.
Can I search or edit the bytes?
No, this is a read-only viewer for inspection. It never modifies or uploads your file.
Related tools
File Inspector
Drop a file to see what it really is: detected type, size, checksums, header bytes and warnings when the extension lies.
File Tools
Text to Hex Converter
See the exact bytes behind any text, from a quick "Hello" to emoji, formatted the way your code or debugger expects.
Encoding & Decoding
Hex to Text Converter
Paste hex bytes from a dump, a log or a source file and read the text they spell.
Encoding & Decoding
File to Base64 Converter
Drop a file and get its Base64 string or a data: URL you can paste into HTML, CSS, JSON or an API request.
File Tools
File Extension Inspector
Enter an extension or a file name to learn what the format is, which MIME type it uses and whether it deserves caution.
File Tools
Binary to Text Converter
Paste a string of ones and zeros and read the message hidden in it.
Encoding & Decoding