How to use
- old.txtnew.txt
Add two texts
- Side-by-side and unifiedAdded / removed colored
Compare line by line
- changes.diffunified diff format
Save or copy the diff
Paste the original text or code on the left and the changed version on the right. You can also choose a file or drop one onto a pane.
The diff updates as you type. Use “Try a sample” to see how it looks.
Turn on “Ignore whitespace”, “Ignore case” or “Ignore blank lines” to hide noise.
Switch between “Side by side” and “Unified”. Words that changed inside a line get a stronger highlight.
Use “Copy patch” or “Save .diff” to export a unified patch with 3 lines of context.
What it does
Word-level highlights inside changed lines
Paired changed lines are compared again by word, symbol and Japanese script run, so only the part that changed is emphasized. If two lines share very little, the whole line is marked to stay readable.
Minimal diffs with Myers’ algorithm
Lines are compared with the Myers O(ND) algorithm, which finds the script with the fewest additions and removals. Common head and tail lines are stripped first, so small edits in big files stay fast.
Side by side or unified
Switch between a numbered two-column view and a git-style unified view. In side-by-side mode a removed line and its replacement sit on the same row.
Ignore options
Ignore all whitespace within lines, letter case, or blank lines, independently. Ignored differences are not counted in the totals.
Unified patch export
Outputs ---/+++ headers and @@ hunks with 3 lines of context, in the format used by patch and git apply. File names you load are used in the headers.
Fully local
Comparison runs in JavaScript in your browser. Neither the text nor the file names are uploaded, so it is safe for confidential code and documents.
Use cases
- Check a config file, SQL script or source file before and after an edit for unintended changes
- Find what changed between two drafts of a contract, article or meeting notes
- Share changes as a .diff file where Git is not available
- Look past line-ending or indentation differences to the real change
- Compare expected and actual output from logs or tests
Supported formats
Open
Export
Capability matrix
| Feature | Support | Notes |
|---|---|---|
| Line diff (added / removed / unchanged) | Supported | — |
| Word-level highlights inside lines | Supported | By word, symbol or script run — not by single character |
| Side-by-side and unified views | Supported | — |
| Ignore whitespace, case, blank lines | Supported | — |
| Unified patch export | Supported | Fixed 3 lines of context |
| Three-way merge / conflict resolution | Not supported | — |
| Applying a patch (patch / git apply) | Not supported | — |
| Folder or binary comparison | Not supported | — |
| Detecting moved lines | Not supported | A moved line shows as a removal plus an addition |
| Offline use | Supported | Works without a connection once loaded |
Limits & notes
- Up to 20,000 lines and 2 million characters per side are compared. Anything beyond that is left out of the diff and the patch, and a notice is shown.
- Files up to 10 MB each can be opened.
- When the edit distance exceeds 4,000, the remainder is treated as “all removed, all added” and a notice is shown.
- Only the first 3,000 diff rows are drawn on screen; the exported patch contains everything.
- Line endings (CRLF / LF) are ignored when comparing lines. Patches use LF and a missing newline at end of file is not detected.
- Works on smartphones, but side-by-side view scrolls sideways inside its table; for detailed review, use a PC or the “Unified” view.
Privacy & safety
Your text and files are compared only inside your browser. Nothing is uploaded or stored, and file names and contents are never put in analytics logs. Closing the page discards everything.
FAQ
How do I compare two texts?
Can I ignore whitespace or case differences?
Can it produce a git-style patch?
Does it work with large files?
Is my text uploaded anywhere?
Does it highlight single characters or moved lines?
Related tools
Lockfile Diff & Dependency Tree
Compare two lockfiles to see which packages were added, removed or upgraded. You can also see why a package is installed and where several versions of one package come from. Nothing leaves your browser.
OpenAPI Diff (Breaking Change Checker)
Paste the old and new OpenAPI (or Swagger 2.0) definitions to list the changes that break clients: removed paths, newly required fields, type changes and more. Each change is sorted into breaking, caution or non-breaking, with the reason on its row. Nothing leaves your browser.
UUID / ULID / NanoID / Token Generator
A UUID is ready the moment the page opens. Switch to UUID v7, ULID, NanoID or a random token, generate up to 10,000 at once and save them as .txt, .csv or .json. Paste an existing UUID or ULID to read its embedded time and version.
Regex Tester
Type a pattern and matches light up in the test string instantly. Capture groups, replacement output and what each part of the pattern means are all on one screen — and patterns that would freeze your browser are stopped after one second.
Code Formatter — Format & Minify
Paste code to format it with the language auto-detected. Choose indent, line width, semicolons, quotes and trailing commas; JavaScript, CSS and HTML can also be minified with before/after size and reduction. Your code never leaves the browser.
i18n Translation Missing Key Checker
Add your base-language file and the other language files, and see missing keys and {name} or %s placeholders that do not match, per language. Export a CSV for translators and rebuild the files from the CSV they return.
Last updated: