Look at any file as bytes HEX
Drop a file and read it byte by byte: what it claims to be, its structure, how random each part is, and what a run of bytes means as a number.
The file
It stays on your machine. Only the rows you are looking at are read, and nothing is written back.
The bytes read-only
Nothing searched for yet.
Too tall to lay out row by row: the scrollbar moves proportionally. Go to offset is exact.
Click a byte to select it. Drag, or shift-click, to select a range; with a finger, tap the first byte and then the last.
Structure
Entropy
Shannon entropy of each block, in bits per byte. Click the graph to jump to that part of the file.
Click a bar to select the first byte of that block.
Take the selection out
Everything here works on the bytes currently selected. Nothing is uploaded to produce it.
How it works
HEX opens any file as raw bytes. Search for text or byte patterns and copy out a range. It opens large files, and it only reads a suspicious file, never runs it, which makes it a safe way to look inside one.
6C 65 61 64 opens the message under CIPHER.
The guide: Is there a message hidden in this image?
Questions people ask about HEX
How big a file can it open?
Larger than you will want to scroll. Only the visible rows are ever read, so the viewer itself does not care about size. Searching and the entropy graph do read the whole file, which on a very large one takes time and shows progress while it happens. Both can be stopped.
What do the numbers in the status bar mean?
The bytes you selected, read as every integer and floating-point type they could be, in both byte orders. Little-endian puts the least significant byte first and is what x86 and ARM use; big-endian is the other way round and is what most network protocols and many file formats use. If a number looks absurd in one column and sensible in the other, you have found the file’s byte order.
Can I search for a string that is not ASCII?
Yes, as UTF-16 little-endian, which is how Windows stores text inside many file formats and how a filename appears inside a ZIP written on Windows. Searching for the same word as ASCII and as UTF-16LE often gives completely different answers about the same file, and that difference is usually the interesting part.
Why does the entropy graph have a flat top?
Because 8 bits per byte is the ceiling. Anything already compressed reaches it: a ZIP, a JPEG, a PNG’s image data, an MP4. If a file is flat at 8 everywhere except a small header, it is compressed or encrypted throughout, and there is nothing more to be read out of it by eye.
Is it safe to open a suspicious file here?
Opening it here is safer than opening it in the program it was made for, because nothing executes: the bytes are read and displayed as bytes and nothing else. That is not the same as saying the file is safe. Nothing here defuses anything, and a document you inspect here can still be dangerous in the application that opens it.
Can I get some of the bytes out?
The selection can be copied as a hex string, as a C array, as base64, or saved as a file of its own. That last one is how you carve an embedded image out of a container: select from its signature to its end marker and save the range.
What does a step in the entropy graph mean?
Usually a boundary: the end of a header, the start of an embedded file, or a packed section in an executable. For scale, a run of zeroes scores 0, English text sits around 4.2, machine code around 6, and compressed or encrypted data at the top, where the two cannot be told apart. Click a bar to jump to that part of the file.
Why does the scrollbar jump on a very large file?
Because the file is too tall for a browser to lay out row by row, so the scrollbar moves through it proportionally rather than a row at a time. Go to offset is exact, so type the offset when you need a precise place.
Doing this often? OBSCURA Umbra edits a folder of code where it is and runs JavaScript, TypeScript and Python over it in a sandbox. Everything is US$5 a month or US$48 a year.