Skip to content

Diff Checker

Paste or open two versions of a text and the diff checker shows exactly what changed, line by line and word by word, without uploading anything.

  • Runs in your browser
  • Nothing is uploaded or stored
  • Free, no sign-up
How the comparison works

Lines are matched with the Myers diff algorithm (the same idea Git uses), which finds the smallest set of added and removed lines. When a removed line is replaced by an added one, the two are shown side by side and the changed words are highlighted.

Ignore whitespace treats runs of spaces and tabs as one space and ignores spaces at the ends of lines. Subtitle files skips cue numbers, timings and the WEBVTT header, so two SRT or VTT files with different timings compare by their words.

Your text never leaves this page. Files you open are read by your browser, not uploaded.

How to compare two texts in 4 steps

  1. Add your two versions. Paste the original on the left and the changed version on the right, or use Open file to load text files from your device. TXT, Markdown, CSV, JSON, HTML, code and subtitle files all work.
  2. Choose options if you need them:
    • Ignore whitespace, for re-indented or re-wrapped text;
    • Ignore case;
    • Subtitle files, to compare two SRT or VTT files by their words only.
  3. Read the result:
    • lines that were added show in green, removed lines in red;
    • changed lines appear side by side with the edited words highlighted;
    • long runs of unchanged lines are folded so you can focus on the edits.
  4. Switch views or export. Use Inline for a single column, Patch for unified diff format, and Copy patch or Download .diff to keep the result.

Two versions of a short letter compared side by side, with 'revised', 'Tuesday', '45' and 'signed' highlighted as changes

What makes this diff checker different

  • Private by design. Your text never leaves the page and is never saved, not even in your browser. That matters for contracts, code and anything personal. Many online diff tools upload what you paste to a server and offer shareable links.
  • Changes at word level, not just line level. A one-word edit in a long paragraph is highlighted on its own, so you don't have to re-read the whole line.
  • A subtitle mode. Two versions of an SRT or VTT file often have every timing shifted. Normal diffs then show every line as changed. Subtitle mode skips cue numbers and timings and compares only what is said.
  • A real patch. The Patch view produces standard unified diff format, which you can copy into an email or code review, or apply with patch or Git.

Use cases

Situation What you'll see
A supplier sends a revised contract Changes such as "30 days" → "45 days" and "final" → "signed" highlighted word by word, plus a new final line marked as added
Re-indented code or a re-wrapped paragraph With Ignore whitespace, only the real edits remain
Two translations of the same subtitles with different timings With Subtitle files, timing changes disappear and only wording differences are left
Comparing a CSV export from two different days Added and removed rows at a glance, with a similarity score
Two drafts of an essay or blog post Changed sentences side by side; download the .diff to keep a record
Checking what an AI assistant or editor changed in your text Every rewritten word highlighted, so nothing slips through unnoticed

Specs and limits

Input Paste, or open local text files up to 5 MB each
Views Side by side, inline, unified patch
Options Ignore whitespace, ignore case, subtitle mode, hide unchanged lines
Algorithm Myers O(ND) line diff with word-level diff inside changed lines
Speed Thousands of lines compare in a fraction of a second on a normal laptop
Very large changes Above 6,000 edits the middle section is shown as one replaced block
Export Copy patch, download .diff
Privacy Runs in your browser. Texts are not uploaded or stored. Only your option ticks are remembered

Frequently asked questions

Is my text uploaded anywhere?

No. The comparison runs in your browser. Files you open are read on your device, and the texts are never stored, not even in your browser's storage.

How does the diff checker decide what changed?

It uses the Myers diff algorithm, the same approach Git uses, to find the smallest set of added and removed lines. A removed line that is replaced by an added one is shown as a change, with the edited words highlighted.

Can I ignore spaces or capital letters?

Yes. Tick Ignore whitespace to treat runs of spaces and tabs as one, or Ignore case to treat 'Hello' and 'hello' as the same.

Can I compare two subtitle files?

Yes. Tick Subtitle files and the checker skips cue numbers, timings and the WEBVTT header, so you can see wording changes between two SRT or VTT files even when every timing is different.

What is the Patch view?

It shows the differences in unified diff format, the same format as diff -u and Git. You can copy it or download it as a .diff file.

How big can the texts be?

Files up to 5 MB each. Tens of thousands of lines compare in well under a second on a normal laptop; very large, very different texts are shown with the middle as one replaced block.

Last updated · Checked in Chrome's engine (Chromium 156) on 30 November 2026. Not yet checked in Safari, Firefox or on phones. · By the VidzHome team