How to use the Hex Editor
- Drop a file onto the box or click it to choose one. Any type and size your browser can hold in memory works, and the file stays on your device.
- Scroll, or click a byte and move with the arrow keys, Page Up/Down and Home/End. Use Go to offset with a decimal number or a hex value like
0x1F4. - Use Search to find hex bytes (e.g.
FF D8 FF) or text. Press Find again for the next match. - To edit, type two hex digits on a selected byte, or enter bytes in Overwrite from selected offset. Edited bytes are shown in bold red.
- Check values in the data inspector, then click Download file to save the modified copy.
A hex editor that runs in your browser
A hex editor shows a file as it really is: a sequence of bytes, each written as two hexadecimal digits from 00 to FF. Text editors hide most of this. They decode bytes into characters, convert line endings and refuse binary data. A hex view hides nothing, which makes it the right tool for checking a file signature, finding a corrupted header, reading a binary format, patching a single byte in a save game or ROM, or seeing why a "text" file has invisible characters in it.
This editor opens the file with the browser's File API and keeps it in memory on your device. Nothing is uploaded, and it works offline once the page has loaded.
Reading the hex view
Each row starts with the offset, the position of its first byte counted from zero and written in hexadecimal. The middle shows the bytes in hex, with an extra gap after the eighth byte to make counting easier. The right column shows the same bytes as ASCII: printable characters (0x20 to 0x7E) appear as themselves and everything else as a dot. Zero bytes are dimmed so padding stands out.
For example, every PNG file starts with the 8-byte signature 89 50 4E 47 0D 0A 1A 0A. In the ASCII column this reads .PNG....: 0x50, 0x4E and 0x47 are the letters P, N and G. Some other common signatures:
| Format | First bytes (hex) | ASCII |
|---|---|---|
| PNG image | 89 50 4E 47 0D 0A 1A 0A | .PNG.... |
| JPEG image | FF D8 FF | ... |
| PDF document | 25 50 44 46 2D | %PDF- |
| ZIP, DOCX, XLSX, JAR | 50 4B 03 04 | PK.. |
| GIF image | 47 49 46 38 | GIF8 |
| UTF-8 text with BOM | EF BB BF | ... |
Large files stay fast
A 50 MB file has more than three million rows at 16 bytes per row. Creating that many page elements would freeze any browser, so the editor uses virtualized rendering and only draws the couple of dozen rows that are visible. Scrolling, jumping to an offset or moving the cursor redraws just those rows. Search uses the browser's native typed-array scan to find the first byte and then checks the rest of the pattern, so it searches tens of megabytes quickly. The practical limit is memory: the whole file is loaded into RAM, so multi-gigabyte files may fail on phones or 32-bit browsers.
The data inspector: one byte, many meanings
Bytes have no type of their own. The same four bytes can be a number, part of a string or a colour. The inspector reads the bytes starting at the selected offset as common types, in both byte orders:
- Int8 / UInt8: one byte, signed (−128 to 127) or unsigned (0 to 255).
- Int16 / Int32 and their unsigned forms: two or four bytes. Little-endian puts the least significant byte first and is used by x86, ARM in its usual mode, and formats like BMP, WAV and ZIP. Big-endian puts the most significant byte first and is used by PNG, JPEG markers and network protocols.
- Float32 / Float64: IEEE 754 single and double precision.
- Binary: the eight bits of the selected byte, in two groups of four.
Worked example: the bytes 01 02 read as UInt16 little-endian are 0x0201 = 513, and big-endian they are 0x0102 = 258. If a width field in a header shows a sensible value in one byte order and nonsense in the other, you have found the file's endianness.
Editing safely
Edits overwrite bytes in place and never insert or delete them, so every offset in the file stays where it was. That is what you want when patching structured binaries. Changed bytes are shown in bold red and underlined, the original value appears next to the selected offset, and you can revert one byte or all edits. The original file on your disk is not modified. Download file saves a new copy with -edited added to its name.
Tips: back up anything important before patching it, remember that many formats carry checksums (a PNG chunk CRC, a ZIP CRC-32) that become invalid if you edit the bytes they cover, and use the number base converter to translate between hex, decimal and binary. To compare two versions of a text file, the diff checker is usually clearer.
Frequently asked questions
Is my file uploaded when I open it in this hex editor?
Can it open large files?
How do I edit a byte?
4 then 1 to write 0x41. You can also type several bytes such as DE AD BE EF into the overwrite box and click Apply. Then click Download file.Can I insert or delete bytes?
How do I search for a hex value or a string?
FFD8FF), or choose Text to search for a UTF-8 string. Press Enter or Find for the next match. The search wraps around to the start of the file.What is the difference between little-endian and big-endian?
01 02 = 513); big-endian stores the most significant byte first (01 02 = 258). The data inspector shows both so you can see which makes sense.How do I go to a specific offset?
Last reviewed November 2026. Results are estimates for information only — see our disclaimer.