Hex Editor: Inspect and Edit Binary Bytes
Open a file or paste hex or Base64, then change bytes, search, and checksum the buffer or a selection. A sample is loaded. Nothing is uploaded.
Preparing the sample in this browser.
Open
The file is read only in this browser and kept in memory. You can also drop a file on this tool. Anything larger than 1,048,576 bytes (1 MiB) is refused so the page does not freeze.
Paste hex or Base64
Paste hex or Base64, then load it into the editor.
Auto reads an 8-digit address followed by a colon or two spaces as a hex dump and does not store that address. Other hex digits, spaces, commas, dashes, underscores, and 0x prefixes are hex. Letters outside A–F, or +, /, or =, are read as Base64. Choose a format when a URL-safe string is ambiguous.
Bytes
- File
- untitled.bin
- Size
- 0 bytes
- Caret
- 00000000
- Selection
- None
- State
- Unmodified
Decimal is used for digit-only values shorter than 8 digits. 10 is ten. 0x10, 10h, and 00000010 are sixteen. The file length places the caret after the last byte.
No bytes are loaded.
No bytes yet. Open a file, paste hex or Base64, or load the sample.
Arrows move. Shift, or Extend selection, grows the range. Drag across bytes to select them. Two hex digits replace the caret byte. Text typing writes one ASCII byte, or inserts UTF-8 when a character needs more than one byte. Delete removes the selection. The grid scrolls sideways on a narrow screen.
No selection.
Checksums
CRC-32: waiting.
SHA-256: waiting.
CRC-32 is the ISO-HDLC value used by ZIP, PNG, and Ethernet (polynomial 0x04C11DB7, reflected, initial and final XOR 0xFFFFFFFF). SHA-256 uses crypto.subtle in this browser. Neither value is sent anywhere.
Export
Copy uses the current selection. Clear the selection, or select all, before copying the whole buffer. Download always saves the whole buffer as a local file. Nothing is uploaded.
How it works
- Each row shows the offset, hex bytes, an ASCII glyph per byte (printable 0x20–0x7E, otherwise a dot), and a UTF-8 reading. A continuation byte is a middle dot. An invalid UTF-8 byte is a dot. Wide characters can make the UTF-8 column wider than the hex cells.
- The sample is the ASCII text Hello, hex!, a newline, the UTF-8 character é, then the bytes 00 FF 7F. Clear replaces it. Undo can bring it back until the history limit.
- Edits, inserts, and deletes change only the in-memory buffer. Delete removes bytes; it does not write zeros. Insert puts bytes before the selection, or at the caret when nothing is selected. Undo keeps up to 40 edits, or about 2 MiB of patches.
- Search is a literal byte sequence. It wraps and allows overlapping matches. It is not a wildcard or regular-expression search. ASCII case folding changes only A–Z and applies to text search.
- Paste 31 32 33 34 35 36 37 38 39 and checksum the whole buffer to check CRC-32: the ASCII string 123456789 is CBF43926. This is not CRC-32C. SHA-256 of an empty buffer is e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.
- Files and pastes over 1,048,576 bytes are refused entirely, not truncated. This is not a disk editor, a process-memory editor, or a multi-gigabyte viewer. Intel HEX, Motorola S-record, binary templates, and replace-all are not included.
- Nothing is uploaded, and the buffer is not saved in the browser. Closing the tab discards it. Download builds a local file in the browser. On a narrow screen the hex rows scroll inside their frame; the page itself should not scroll sideways. From the grid, Ctrl+F focuses search, Ctrl+G focuses go, Ctrl+A selects all, Ctrl+C copies the selection as hex, and Ctrl+Z / Ctrl+Y undo and redo.