Hex Editor

Open, inspect and edit binary files in your browser. Hex + ASCII view, byte editing, hex/text search, data inspector, code export. Free, nothing uploaded.

By

Advertisement

Online Hex Editor for Viewing and Editing Binary Files

This online hex editor opens a binary file in your browser and shows you exactly what is inside it: every byte in hexadecimal, the matching ASCII alongside, and the offset of each row. You can search it, jump to an offset, change bytes in place, bookmark interesting positions, and export the modified file back out. There is nothing to install and nothing to upload — the file is read locally through the browser’s File API and the bytes never touch a server.

It exists for the moments when a file will not open the way it should. A .bin dump from a device, a firmware image, a save file, a proprietary format with no documentation, a “corrupt” download you want to check the header of. A hex viewer is how you find out what a file actually is rather than what its extension claims.

What You Can Do With It

  • Load any file by drag-and-drop or file picker — binaries, executables, images, archives, firmware, disk fragments, anything.
  • Paste raw hex instead of a file. Formats like 48 65 6C 6C 6F or 0x48,0x65,0x6C are both accepted, which is handy for inspecting a hex blob copied out of a log or a packet capture.
  • Switch row width between 8, 16, and 32 bytes per row to line up with the structure you are reading.
  • Colour-code byte types so null bytes, printable ASCII, control characters, whitespace, and high/extended bytes are visually distinct. Padding, text regions, and structure boundaries jump out immediately.
  • Search by hex pattern or ASCII string, with every hit highlighted and next/previous navigation between them.
  • Jump to an offset by typing it in hex, e.g. 1A4F.
  • Select a byte or drag a range, and edit any byte by entering a new value from 00 to FF. Modified bytes stay highlighted and are counted, so you always know what you have changed.
  • Bookmark offsets with notes to keep track of the header, the magic number, the length field, and whatever else you are mapping.
  • Export the modified file as a download, or export a selection as code in C, Python, JavaScript, Go, Rust, or C#.
  • Share a permalink for small inputs — up to 1024 bytes are encoded into the URL itself.

Large files stay usable because the hex view is virtualised: only a window of rows is rendered at a time, and scrolling or jumping moves that window. You are not waiting on the browser to lay out a million table rows.

Reading a Hex Dump

Every row of a hex dump has three parts. On the left, the offset — the position of the first byte on that row, written in hexadecimal. In the middle, the bytes themselves, two hex digits each. On the right, the ASCII rendering, where printable characters appear as themselves and everything else shows as a placeholder.

At 16 bytes per row the offset advances by 0x10 each line, so the byte at offset 0x0000002B sits on the row starting at 0x00000020, eleven columns across. That arithmetic is why the row-width control matters: a structure with 8-byte fields reads cleanly at 8 or 32 bytes per row and looks like noise at anything else.

The first few bytes of a file are usually the most informative, because most formats begin with a magic number:

Leading bytesASCIIFormat
4D 5AMZWindows executable (PE/EXE/DLL)
7F 45 4C 46.ELFLinux/Unix executable
50 4B 03 04PK..ZIP, and everything built on it (DOCX, XLSX, JAR, APK)
89 50 4E 47.PNGPNG image
FF D8 FF—JPEG image
25 50 44 46%PDFPDF document
1F 8B—gzip archive

If a file’s extension and its magic number disagree, the magic number is telling the truth. For a systematic check across a much longer signature list, use the file magic number checker.

The Data Inspector and Endianness

Raw bytes only become meaningful once you decide how to interpret them. Select any byte and the data inspector decodes the bytes starting at that offset as every common primitive at once: int8 and uint8, the binary expansion of that byte, int16/uint16, int32/uint32, float32, int64/uint64, float64, the ASCII character, and a UTF-8 decoded string.

A little-endian and big-endian toggle sits alongside, because the same four bytes mean different numbers depending on byte order. Take 01 00 00 00: read little-endian — least significant byte first, the convention on x86 and ARM — that is the 32-bit integer 1. Read big-endian, the convention in most network protocols and on some older architectures, it is 16,777,216. Getting endianness wrong is the classic reason a length field looks absurd, and flipping the toggle is usually the fastest way to confirm you have found the right field.

How to Use the Hex Editor

  1. Load your data. Drag a file onto the drop zone, choose one with the file picker, or paste a hex string.
  2. Set the row width to 8, 16, or 32 bytes depending on the structure you expect, and leave colour coding on while you get oriented.
  3. Look at the start of the file to identify the format from its magic bytes, and note the header layout.
  4. Search for a hex pattern or an ASCII string to find the region you care about, and step through hits with next/previous.
  5. Select a byte and read the data inspector, toggling endianness until the decoded values look plausible.
  6. Bookmark each field you identify, with a note, so you can navigate back as the map fills in.
  7. Edit bytes by selecting one and entering a new hex value. Changes are highlighted and counted.
  8. Export the modified file as a download, or export the selected range as a code array to paste into a test or a script.

Practical Uses

  • Opening a .bin file. A .bin extension says nothing about content. A hex viewer shows the header and tells you whether you are looking at firmware, a disk image, a ROM, or a serialised blob.
  • Verifying file headers and trailers. Confirming a PNG ends with IEND, or a ZIP has a valid end-of-central-directory record, quickly separates truncated files from otherwise broken ones.
  • Malware and CTF work. Pulling readable strings out of a sample, spotting appended data past the apparent end of a file, and patching a byte to see what changes.
  • Firmware and embedded debugging. Locating configuration blocks and version strings inside a flash dump.
  • Protocol and format reverse engineering. Bookmarking fields and using the data inspector to work out where lengths, offsets, and timestamps live.
  • Building test fixtures. Exporting a byte range as a C, Python, Go, Rust, JavaScript, or C# array to drop straight into a parser test.

For a first-pass look at whether a region is compressed or encrypted, the entropy analyzer complements this tool; obfuscated script payloads found inside a file are a job for the malware deobfuscator.

Frequently Asked Questions

Is this a replacement for HxD or a desktop hex editor?+

For inspection, targeted edits, and quick analysis, yes — and it works on any operating system with no install, which desktop tools cannot claim. Dedicated desktop editors still win for very large files, disk and memory editing, binary templates, and file comparison. Use this when you need an answer now and do not want to install anything.

Is my file uploaded anywhere?+

No. The file is read in your browser through the File API and every operation — rendering, searching, editing, exporting — happens locally. Nothing is transmitted. The only data that ever leaves the page is a permalink you explicitly choose to copy, and that is limited to 1024 bytes of content.

Can I edit bytes and save the file back?+

Yes. Select a byte, enter a new value between 00 and FF, and repeat for as many bytes as you need. Edited positions stay highlighted and the count of changes is shown. Export downloads a new copy of the file with your modifications applied; your original file on disk is untouched.

How do I open a .bin file online?+

Drag it onto the drop zone. It is displayed as hex with an ASCII column immediately. Start at offset 0 and read the first bytes — those usually identify the real format even when the extension does not.

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

Byte order for multi-byte numbers. Little-endian puts the least significant byte first and is what x86 and ARM use; big-endian puts the most significant byte first and is standard in network protocols. The data inspector has a toggle, and switching it changes every multi-byte value it reports.

How large a file can I open?+

The hex view is virtualised, so it renders only a window of rows at a time and stays responsive on files far larger than a naive editor would handle. The practical ceiling is your browser’s available memory, since the whole file is held in a buffer. Very large images are better handled by a desktop tool.

Can I search for text rather than hex?+

Yes. Switch the search mode to ASCII and type the string. Hex mode accepts patterns like 4D5A or 4D 5A. Both modes highlight every match and let you step through them.

Is the hex editor free?+

Yes — free, unlimited, and no account required, like the rest of our security tools.

What is a hex editor used for?+

A hex editor allows you to view and edit binary files at the byte level. It is commonly used for analyzing file formats, reverse engineering, examining malware samples, editing game saves, recovering corrupted data, patching executables, and understanding how programs store data internally.

How do I navigate to a specific byte offset?+

Enter the hexadecimal offset in the Jump to Offset field and click Jump. The view will scroll to that location and select the byte at that offset. You can also click directly on any byte in the hex view to select it, and the info bar will show the offset in both hexadecimal and decimal formats.

Related tools

This tool is provided for informational and educational purposes only. While we strive for accuracy, we make no warranties about the completeness or reliability of results. Results are based on the information you enter and do not constitute a security audit, a formal compliance assessment, or legal advice, and they do not establish that any system or organisation meets a given standard. Coverage of a framework may be partial — check what the tool states it assesses. For anything you intend to rely on, consult a qualified assessor.