Hex Editor

Inspect a binary file at exact byte offsets, apply hexadecimal replacements and undo edits before downloading a copy.

On-device No sign-up Free to use

Inspect edited bytes controls

  1. 1 Add files
  2. 2 Arrange/Options
  3. 3 Download

Drop your file here

or choose one from your device

Any file type, up to 2 MiB. Edits produce a downloaded copy.

    ?

    One decimal offset: space-separated hex bytes per line, for example 1: 41 ff. Add undo to reverse the last edit. Up to 100 lines.

    ?

    ?

    ?

    ?

    Pairs of hex digits separated by spaces, for example 00 ff.

    Result

    Showing an example.

    Inspect bytes, apply bounded patches and undo edits in a copy.

    For a four-byte file 00 ff 41 42, instructions 1: 11 22, undo, then 3: ff produce 00 ff 41 ff. Length remains four bytes and the original file is unchanged.

    Loading the tool. Your result will appear here.

    https://usefreetools.net/local-hex-editor · 20 November 2026

    Was this helpful?

    How to use Hex Editor

    1. Select a binary file and choose the decimal offset for its byte preview.
    2. Enter replacement hex bytes and use Add byte edit, or write patch instructions directly.
    3. Use Undo last byte edit when needed, then run to inspect the current copy.
    4. Download the edited binary and keep the original file for comparison.

    Example: Hex Editor

    Inspect bytes, apply bounded patches and undo edits in a copy.

    You add
    Select sample.bin containing 00 ff 41 42. Patch instructions: 1: 11 22 undo 3: ff. Preview offset 0, count 256.
    You get
    For a four-byte file 00 ff 41 42, instructions 1: 11 22, undo, then 3: ff produce 00 ff 41 ff. Length remains four bytes and the original file is unchanged.

    Supported inputs and limits

    • One file up to 2 MiB.
    • Replacements contain 1 to 4,096 bytes within the existing file; insertion, deletion and length changes are unsupported.
    • Use decimal offsets in instructions and pairs of hex digits separated by spaces.
    • The preview shows 16 to 1,024 bytes with hexadecimal offset labels.
    • Up to 100 patch lines and 100 retained edits.
    More details

    Undo reverses the most recent patch; reset clears the list.

    No executable, document or checksum repair is inferred from byte changes.

    Where your input is processed

    This tool does not upload your inputs. See the limits for anything saved on your device.

    Questions about Hex Editor

    Does the editor overwrite my selected file?

    The file is read into a separate byte array. Download creates a new edited copy; the original selected file is never opened for writing.

    Are offsets decimal or hexadecimal?

    Patch and preview input offsets are decimal numbers. The first column of the displayed byte table uses hexadecimal so that it is easy to compare with other hex tools.

    Why might the downloaded copy stop opening?

    A byte edit can break a file signature, internal offset, compressed stream or checksum. The editor changes exactly the requested bytes and does not repair the surrounding format.

    Page updated · Project managed by Tony Hines · Report a problem with Hex Editor