Offset, hex and text
Each row starts with the offset of its first byte, followed by the bytes as two hex digits each and the same bytes as text. Bytes that are not printable ASCII show as a dot.
Open any file to inspect its bytes as hex and text. Decode numbers at the cursor, jump to an offset, search for bytes or text, overwrite bytes and download the patched file.
00 null 0A control 41 printable C3 80–FF FF changed
Click a byte and type to overwrite it, in the hex or the text column. Shift+click or drag selects a range, Ctrl+Z undoes. On a touch screen, tap a byte and use the Byte field in the inspector.
Each row starts with the offset of its first byte, followed by the bytes as two hex digits each and the same bytes as text. Bytes that are not printable ASCII show as a dot.
The bytes at the cursor are decoded as 8, 16, 32 and 64-bit integers, floats, binary, a UTF-8 character and a Unix timestamp – in little-endian or big-endian order.
Only the part of the file on screen is read, so a file of several gigabytes opens as quickly as a small one.
The file is read by your browser and never uploaded. Edits exist only in this tab until you download the patched copy.
Most file formats start with fixed "magic bytes". They identify a file regardless of its name or extension, and the hex editor uses them to tell you what you have opened.
| First bytes | As text | File type |
|---|---|---|
89 50 4E 47 0D 0A 1A 0A | .PNG.... | PNG image |
FF D8 FF | ... | JPEG image |
47 49 46 38 | GIF8 | GIF image |
25 50 44 46 | %PDF | PDF document |
50 4B 03 04 | PK.. | ZIP archive – also .docx, .xlsx, .jar and .apk |
1F 8B | .. | gzip archive |
52 49 46 46 … 57 45 42 50 | RIFF….WEBP | WebP image (WAV and AVI also start with RIFF) |
4D 5A | MZ | Windows executable (.exe, .dll) |
7F 45 4C 46 | .ELF | Linux executable or library (ELF) |
CA FE BA BE | .... | Java class file |
53 51 4C 69 74 65 | SQLite | SQLite database |
EF BB BF | ... | UTF-8 text with a byte order mark |
A hex editor shows the raw bytes of a file instead of interpreting them as text or an image.
Each byte is written as two hexadecimal digits, from 00 to FF. It is the
tool for checking what a file really contains: its format, its headers, hidden characters or
corruption.
No. The file is read locally by your browser and is never sent to a server. That also makes it safe for files you would not want to upload.
There is no fixed limit. The editor only reads the rows that are on screen, so files of several gigabytes work. Searching a very large file takes longer because the whole file has to be read.
Click the byte and type two hex digits, or click in the text column and type a character. Changed bytes turn red and Ctrl+Z undoes them. Your original file is not touched: Download saves a patched copy.
No. The editor overwrites bytes in place, so the file keeps its size and nothing after the edit shifts position. That is what patching a header, a flag or a string usually needs.
It is the order in which the bytes of a number are stored. The bytes 20 03 00 00 are
800 as a little-endian 32-bit integer and 537067520 as a big-endian one. x86 and ARM machines
and most Windows formats are little-endian; network protocols and formats such as PNG and Java
class files are big-endian. Switch between LE and BE in the inspector.
Only printable ASCII characters (20 to 7E) have a visible glyph.
Every other byte is drawn as a dot so the column stays aligned with the hex bytes. Characters
such as ø or emoji are stored as two to four UTF-8 bytes and show as dots too; the inspector
decodes the character at the cursor.
Type an offset in Go to. It is read in the same base as the offset column – hex unless you
turned on decimal offsets – and a 0x prefix always means hex. Find searches for
hex bytes such as 50 4B 03 04 or for text, forwards with Enter and backwards
with Shift+Enter.
Yes. Paste it into the Base64 decoder; when it decodes to binary data, View as hex opens the bytes here.