DevTools Logo

Browser Hex Editor

Browser Hex Editor

Inspect and patch bytes locally, review the diff, then export a copy. Your original file is never touched.

Runs in your browser
Try an example

Byte grid

0 bytes · No bytes loaded · 0 edits

Page 1

Edit diff

0 edits · 0 bytes on export

Load bytes to start editing

Type an ASCII seed or open a local file. Nothing is uploaded.

Details

Browser Hex Editor reads a file (or an ASCII seed) into a byte grid and keeps every change in a sparse offset-to-byte overlay. Select a cell and enter a hex value, patch a printable character in the ASCII column, or paste a hex string at the cursor. The diff panel lists every changed byte with original and patched glyphs, and undo/redo works on whole batches. Export writes a byte-for-byte copy of the original with only the overlay applied; the file on disk is never modified and nothing is uploaded.

More examples

Patch printable text

Hello, hex world!
select byte 0x0000 → 4D (M)

The first byte changes from 0x48 (H) to 0x4D (M); the diff shows 48 H → 4D M.

Magic bytes

MZ\x00\x00
search hex 4D 5A → offset 0x0000

Hex search accepts 4D 5A, 4D5A and 0x4D, 0x5A forms and highlights the first hit.

Batch patch

select offset 2 → patch hex string 48 69

The patch string writes consecutive bytes from the cursor and records one undoable batch.

Examples

Change a letter

Input
seed Hello, select offset 0x0000, apply 4D
Output
48 H → 4D M

The diff shows the original and patched byte; ASCII text updates in the grid immediately.

Find a signature

Input
search hex 4D 5A in a binary
Output
Offset 0x0000

Hex search ignores case and common separators and scans patch-adjusted bytes.

Batch patch

Input
select offset 2 and paste 48 69
Output
Two consecutive bytes changed in one undo entry

A hex string patch writes from the cursor and records one history batch.

About this tool

Browser Hex Editor opens a file or an ASCII seed in a 16-byte grid with an offset column, hex pairs and a printable ASCII gutter. Search accepts hex patterns and text, go-to-offset accepts decimal or 0x notation, and every changed byte is highlighted for review before export.

Edits live in a sparse overlay of offset-to-byte entries, so a tiny patch to a large file costs almost nothing. Undo and redo operate on whole batches, and the diff panel lists each byte's original and patched values with glyphs. Export streams a copy with the overlay applied at the same length; the original file is never written.

Everything runs in the tab. No binary is uploaded, no byte data is persisted, and the export is an ordinary browser download. File length is fixed: this is an overwrite editor, not an inserter.

What this tool does not do

  • File length is fixed: bytes can be overwritten but not inserted or deleted.
  • The practical file cap is 512 MB; very large files may be limited by browser memory.
  • Search results are capped at 200 hits.
  • No format-specific decoding or disassembly is provided.

How to use this tool

  1. Load bytes

    Open a local file with the picker or type an ASCII seed into the input pane.

  2. Navigate

    Use go-to-offset (decimal or 0x…), page controls, or click a hex cell to select it.

  3. Patch

    Enter a two-digit hex byte, type in the ASCII column, or paste a hex string at the cursor.

  4. Review and export

    Check the diff list, undo if needed, then download the patched copy at the original length.

Use cases

Config byte patches

Flip a flag or magic byte in a binary config without a native editor.

Security triage

Trial a byte change and inspect the diff before deciding whether to keep it.

Firmware headers

Patch a handful of header bytes in a large blob while keeping its length intact.

Input forms

FieldAccepted input
Hex byte4D or 0x4D (one byte)
Hex pattern4D 5A, 4D5A, 0x4D, 0x5A
ASCII searchCase-sensitive text
Go to offset0x01FF or 511
ASCII patchPrintable characters 0x20–0x7E
File sizeUp to 512 MB practical cap

Overwrite only: the exported file has exactly the same number of bytes as the original.

Common mistakes

Mistake:Expecting the original file on disk to change.

Fix:The editor only downloads a patched copy; your source file remains untouched.

Mistake:Trying to insert bytes.

Fix:This is overwrite-only; insertion changes file length and is out of scope.

Mistake:Pasting an odd-length hex string.

Fix:Hex groups must contain whole byte pairs, e.g. 4D 5A rather than 4D 5.

Mistake:Assuming non-printable bytes appear literally in the ASCII gutter.

Fix:They are shown as a dot; inspect the hex column instead.

Mistake:Forgetting to export after patching.

Fix:Edits stay in the tab until you download the patched copy.

Frequently asked questions

Does editing change my original file?

No. The browser reads your file and keeps edits in a sparse overlay of offset-to-byte entries. Export downloads a separate patched copy with the original length; the file on disk is never written or replaced.

Can I insert bytes, not just overwrite?

No. This is a fixed-length overwrite editor. Inserting or deleting bytes would change the file length and requires rebuilding the entire file, so it is deliberately out of scope.

How do I search for a byte pattern?

Choose Hex or ASCII as the search mode and enter a pattern. Hex mode accepts 4D 5A, 4D5A and 0x4D, 0x5A; ASCII mode matches printable text. The scan uses the patched overlay values and jumps to the first of up to 200 hits.

What's the size limit?

The practical cap is 512 MB. Only the visible grid window is rendered and edits are stored as a sparse map, so patching a few bytes in a large file is cheap. Browsers may still limit very large files by available memory.

Is the patched file verifiable?

Yes. The diff panel lists every changed offset with the original and new byte and their ASCII glyphs, and the export has exactly the same byte length as the input, so you can compare sizes or run your own checksum on both files.

Is my binary uploaded anywhere?

No. Reading, searching, patching and export all happen in your browser tab. No file data is sent to a server and no byte content is saved to local storage.

References & standards