Diff checker

Compare two texts and see every added, removed and changed word. Free, no sign-up, and everything runs in your browser.

Differences

+5 added
-4 removed

1

Launch plan

1

Launch plan

2

2

3

-

Launch day: Tuesday

3

+

Launch day: Wednesday

4

-

Tagline: Track every habit in one place.

4

+

Tagline: Track every habit in one simple place.

5

-

Price: $5 per month

5

+

Price: $4 per month, or $40 per year

6

-

Channels: newsletter, X, Reddit

6

+

Channels: newsletter, X, Reddit, Discord

7

Owner: Sam

7

Owner: Sam

8

+

Follow-up email: the day after launch

What this diff checker does

A diff checker puts two versions of a text next to each other and marks what changed. Paste the old version on the left and the new version on the right. Removed lines turn red, added lines turn green, and inside a changed line the exact words that changed are highlighted, so a one-word edit in a long paragraph is easy to spot.

It works for any plain text: code, config files, JSON, CSV rows, contracts, release notes, or two drafts of your landing page copy. The comparison runs in your browser tab, so private text never leaves your device.

How to compare two texts

  1. Paste the original text into Original text and the new version into Changed text. The differences update as you type.
  2. Pick Side by side to read both versions in two columns, or Inline to read the changes in one column. Phones start in Inline.
  3. Turn on Ignore case or Ignore whitespace when only real content changes matter, for example after a code formatter reflowed a file.
  4. Long runs of unchanged lines fold away. Select a "Show unchanged lines" bar to open it.
  5. Select Copy as unified diff to copy the changes in the standard diff -u layout that code reviews, issue trackers and the patch command understand.

How the comparison works

The tool first compares whole lines and finds the smallest set of lines to remove and add that turns the original into the new text. It uses Eugene Myers' O(ND) difference algorithm, which is also the default diff algorithm in Git.1 Then, for each removed line that is paired with an added line, it runs the same comparison on the words inside them to find the changed words.

If two texts differ almost everywhere, a minimal alignment would take too long in a browser tab. In that case the tool says so and shows the changed part as one removed block and one added block.

Tips for cleaner diffs

  • Compare like with like. Format both JSON documents the same way first (the JSONPath tester has a Format button), or every line will look different.
  • Turn on Ignore whitespace for indentation-only changes. It treats any run of spaces and tabs as one space and ignores spaces at the start and end of a line.
  • Keep each change small when you write. A diff of a page rewritten in one pass is hard to read. A diff of three focused edits is easy to review, which also helps when you compare launch copy drafts from your launch checklist.

Frequently asked questions

Sources

  1. Git documentation: git diff (the --diff-algorithm option)

  2. GNU Diffutils manual: Unified Format

  3. GNU Diffutils manual: Incomplete Lines