Hex Editor

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.

What the hex editor shows

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.

Data inspector

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.

Large files

Only the part of the file on screen is read, so a file of several gigabytes opens as quickly as a small one.

Private by design

The file is read by your browser and never uploaded. Edits exist only in this tab until you download the patched copy.

File signatures: recognizing a file by its first bytes

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 bytesAs textFile type
89 50 4E 47 0D 0A 1A 0A.PNG....PNG image
FF D8 FF...JPEG image
47 49 46 38GIF8GIF image
25 50 44 46%PDFPDF document
50 4B 03 04PK..ZIP archive – also .docx, .xlsx, .jar and .apk
1F 8B..gzip archive
52 49 46 46 … 57 45 42 50RIFF….WEBPWebP image (WAV and AVI also start with RIFF)
4D 5AMZWindows executable (.exe, .dll)
7F 45 4C 46.ELFLinux executable or library (ELF)
CA FE BA BE....Java class file
53 51 4C 69 74 65SQLiteSQLite database
EF BB BF...UTF-8 text with a byte order mark

Frequently asked questions

What is a hex editor?

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.

Is my file uploaded anywhere?

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.

How large a file can I open?

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.

How do I edit a byte?

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.

Can I insert or delete bytes?

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.

What is the difference between little-endian and big-endian?

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.

Why does the text column show dots?

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.

How do I jump to an offset or search?

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.

Can I view Base64 data as hex?

Yes. Paste it into the Base64 decoder; when it decodes to binary data, View as hex opens the bytes here.