Home › Developer Tools › Online Hex Editor

Online Hex Editor

Open any file to see its bytes as hex and ASCII side by side, then edit, insert or delete bytes, search for hex patterns or text and read values with the data inspector. The file is read locally and never uploaded.

Last updated:

sample.png Drop any file here to open it. Nothing is uploaded.
Advertisement
Advertisement

How to use the Online Hex Editor

  1. Open a file with the Open file button or drop it on the editor. A small PNG sample is loaded so you can try it right away.
  2. Move around with the arrow keys, Page Up/Down and Home/End, or use Go to offset to jump to a position such as 0x400.
  3. Edit bytes: click a hex cell and type hex digits, or press Tab to switch to the ASCII column and type text. Changed bytes turn orange.
  4. Search for a hex sequence like 49 48 44 52 (?? matches any byte) or switch to Text, then use Find next and the previous arrow.
  5. Read values at the cursor in the data inspector and switch between little-endian (LE) and big-endian (BE).
  6. Download the file to save your changes; use Undo (Ctrl+Z) to step back at any time.

Reading a hex view

Each row starts with the offset: the position of its first byte, counted from 0 and written in hexadecimal. With 16 bytes per row the offsets go 00000000, 00000010, 00000020 and so on, so the byte under column 0A in row 00000010 sits at offset 0x1A (26 in decimal). The middle columns show every byte as two hex digits and the right column shows the same bytes as ASCII characters.

One hex digit encodes 4 bits, so a byte (8 bits) always takes two digits: 00 = 0, 7F = 127, FF = 255. To convert a two-digit value to decimal, multiply the first digit by 16 and add the second: 4E = 4 × 16 + 14 = 78, which is the letter N.

Common file signatures (magic bytes)

Most formats begin with a fixed byte sequence that identifies them regardless of the file name. The editor recognises these automatically; you can also search for them.

FormatFirst bytes (hex)As text
PNG89 50 4E 47 0D 0A 1A 0A.PNG....
JPEGFF D8 FF...
GIF47 49 46 38 39 61GIF89a
PDF25 50 44 46 2D%PDF-
ZIP, DOCX, XLSX, APK50 4B 03 04PK..
GZIP1F 8B..
Windows EXE / DLL4D 5AMZ
Linux ELF7F 45 4C 46.ELF
WAV52 49 46 46 ?? ?? ?? ?? 57 41 56 45RIFF....WAVE
WebAssembly00 61 73 6D.asm
SQLite 353 51 4C 69 74 65 20 66 6F 72 6D 61 74 20 33 00SQLite format 3.

Keyboard shortcuts

KeyAction
0-9, A-F (hex column)Overwrite the byte at the cursor, one digit at a time
Any character (ASCII column)Overwrite with that character's UTF-8 bytes
TabSwitch between the hex and ASCII columns
Arrows, Page Up/DownMove the cursor; hold Shift to select
Home / End, Ctrl+Home / Ctrl+EndStart or end of the row, start or end of the file
DeleteDelete the selected bytes (the file gets shorter)
Ctrl+Z / Ctrl+YUndo / redo
Ctrl+A, Ctrl+C, Ctrl+SSelect all, copy selection as hex (or text in the ASCII column), download

Tip: before patching an executable or a document, keep a copy of the original. Overwriting keeps every offset in place, while inserting or deleting bytes shifts everything after the cursor, which can break formats that store absolute offsets, such as ZIP directories or PDF cross-reference tables.

Frequently asked questions

What is a hex editor?

A hex editor shows the raw bytes of a file as hexadecimal numbers (00 to FF) instead of interpreting them as text or an image. It lets you inspect file headers, patch individual bytes, repair corrupted files and understand binary formats that ordinary editors cannot open.

Is my file uploaded to a server?

No. The file is read into your browser's memory with the File API, edited there and saved with a download. Nothing is sent over the network, so the editor also works offline once the page has loaded.

How do I edit a byte?

Click the byte in the hex column and type two hex digits (0-9, A-F); the cursor moves to the next byte automatically. To type characters instead, press Tab or click the ASCII column. Use Delete to remove bytes and the Insert box to add new ones.

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

They are the two orders for storing multi-byte numbers. Little-endian (used by x86 and ARM processors and formats like BMP and WAV) stores the least significant byte first, so 01 00 is the number 1. Big-endian (used by PNG, JPEG and network protocols) stores the most significant byte first, so 00 01 is 1. The inspector shows both by switching LE and BE.

Why do some bytes show as a dot in the ASCII column?

Only printable ASCII characters (byte values 32 to 126) are shown as text. Control codes, zero bytes and values above 127 are displayed as a dot so the column stays aligned; their real value is still visible in the hex column.

How large a file can I open?

Files up to 1 GB can be opened, limited by your browser's memory. Scrolling stays fast because only the visible rows are drawn. Searching very large files takes longer, since every byte is scanned in the page.

Can I search with wildcards?

Yes. In Hex mode, ?? stands for any single byte, so 50 4B ?? ?? finds every ZIP signature followed by any two bytes. In Text mode the search is UTF-8 and ignores letter case unless you tick Match case.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Hex to Text ConverterConvert hex to text and text to hex with UTF-8 support and space, 0x, \x or comma formats.Hex CalculatorHexadecimal + − × ÷ and AND, OR, XOR, NOT, shifts with decimal and binary equivalents.File Hash CheckerGet MD5, SHA-1, SHA-256 and SHA-512 checksums of files and verify them against a hash.Hex to DecimalConvert hex to decimal instantly with steps and signed mode.Online Python CompilerRun Python 3 in your browser with input(), numpy, pandas, charts and share links.JSON EditorEdit JSON in a tree and as code side by side: add, rename, drag, change types, undo and download.Unzip FilesOpen and extract ZIP files online.RAR & 7z ExtractorOpen RAR, 7z and other archives online and extract files.Regex TesterTest and debug regular expressions live.File Info ViewerCheck file size, type, date and MD5/SHA hashes.SQLite ViewerOpen .db and .sqlite files in your browser, browse tables and run SQL queries.DOCX ViewerOpen and read Word .docx files in your browser, then print or save them as HTML.EPUB ReaderOpen and read EPUB e-books in your browser with pages, a table of contents and font controls.What Is My BrowserSee your browser, version, OS, engine, screen and which web features it supports.Font ViewerPreview TTF, OTF, WOFF and WOFF2 fonts with sample text, waterfall, glyphs and metadata.Markdown EditorWrite Markdown with a toolbar, live split preview, autosave and .md or HTML export.Regex Cheat Sheet75+ ready-to-use regex patterns for emails, URLs, IPs and dates, each with a live test box.JavaScript Keycode FinderPress any key to see its JavaScript key, code, keyCode, which, location and modifiers.QR Code ScannerScan QR codes with your camera or from an image and safely read the link or text.RAID CalculatorUsable capacity, efficiency and fault tolerance for RAID 0, 1, 5, 6, 10, 50 and 60 arrays.JSONPath TesterTest JSONPath expressions live: filters, slices, wildcards and recursive search, with matches highlighted.Mermaid Diagram EditorWrite Mermaid code and see flowcharts, sequence, Gantt and ER diagrams live. Export SVG or PNG.Country Codes ListSearch ISO 3166 alpha-2, alpha-3 and numeric country codes with calling codes and TLDs.CSS Selector TesterTest CSS selectors on your HTML: highlighted matches, match count and specificity.Git Cheat SheetSearchable Git command reference by task, with copy buttons and an undo/rename/fix wizard.HAR File ViewerOpen a .har file to see a waterfall timeline, headers, bodies, timings and size totals.jq PlaygroundRun jq filters on JSON in your browser with live output, flags and an example library.Markdown Cheat SheetInteractive Markdown syntax reference: edit every example and see the live rendered preview.Regex ExplainerPaste a regular expression and get a plain-English breakdown, railroad diagram and flag notes.XPath TesterTest XPath expressions on XML or HTML: highlighted matches, node paths, values and examples.EML File ViewerOpen .eml email files to read the message, headers and raw source and save attachments.Graphviz Online ViewerWrite Graphviz DOT code and render graphs live; switch layout engines, export SVG or PNG.JavaScript Online CompilerWrite and run JavaScript in your browser with a console, timing, error lines and share links.Jupyter Notebook ViewerOpen .ipynb files and read code, Markdown, math, tables, plots and errors without Python.LaTeX Table GeneratorEdit a table like a spreadsheet or paste from Excel and get LaTeX tabular or booktabs code.Log File ViewerOpen huge log files with level colors, regex and time filters, JSON pretty-print and tail -f.Logic Gate SimulatorBuild logic circuits with AND, OR, NOT, XOR gates and flip-flops; see live outputs and truth tables.MSG File ViewerOpen Outlook .msg emails in your browser: sender, recipients, body, headers and attachments.Sorting Algorithm VisualizerWatch bubble, insertion, merge, quick, heap and radix sort step by step with live counters.Lottie ViewerOpen Lottie JSON or .lottie files to play, pause, scrub frames, change speed and see details.Diff ViewerPaste a git diff or .patch file and view it side by side or inline, with file navigation.EditorConfig GeneratorBuild an .editorconfig with indent, charset, line endings and trim rules per file pattern.Folder Compare ToolCompare two folders by file list, size and SHA-256 hash, then open a text diff of changed files.Glob Pattern TesterTest glob patterns like **/*.js, {a,b} and !exclusions against a list of file paths.JMESPath TesterEvaluate JMESPath expressions against JSON live, the query language used by the AWS CLI.MongoDB Query TesterTest MongoDB find filters, projections and aggregation pipelines on sample JSON documents.Semantic Version CalculatorBump, compare, sort and test SemVer versions against npm ^, ~ and x ranges.XSLT TesterRun an XSLT 1.0 stylesheet on XML in your browser and see the output as HTML, XML or text.ASCII Diagram EditorDraw boxes, arrows and text on a character grid and copy plain-text diagrams for code and READMEs.DBF File ViewerOpen dBase .dbf files and shapefile tables, search and sort records, export CSV or XLSX.MBOX File ViewerOpen .mbox mail archives: list and search messages, read them, save attachments, export EML.MDB File ViewerOpen Access .mdb and .accdb databases in your browser: list tables, view rows, export CSV.Shapefile ViewerView zipped shapefiles on a map with the attribute table, then export to GeoJSON or CSV.Online Code EditorVS Code-style editor in your browser: tabs, 50+ languages, find/replace, autosave.PHP Online CompilerRun PHP 8 code in your browser with output, HTML preview, error lines and share links.PlantUML EditorWrite PlantUML and see sequence, class, activity and more diagrams live. Export SVG or PNG.
See all 53 Code Playgrounds & Testers →