Diff Checker: Compare Two Texts Side by Side

Paste the original on the left and the changed text on the right. See every added, removed and changed line at a glance.

Runs entirely in your browser. Nothing you enter is sent or stored.

How to use

  1. Paste the original text into the left box and the new text into the right box.
  2. Choose line mode, or word mode to highlight the exact words that changed.
  3. Tick “Ignore whitespace” if spaces and tabs should not count as changes.
  4. Click Compare. Green rows were added, red rows removed, yellow rows changed.

A diff checker shows exactly what changed between two versions of a text: a contract draft and its revision, two config files, a translated string table, or code copied from different places. Paste the old version on the left and the new one on the right, and the tool lines them up side by side with line numbers while both panes scroll together.

Lines are aligned with the Myers algorithm from the jsdiff 5.2.0 library, the same algorithm behind the default mode of git diff. When a block of deleted lines is directly followed by added lines, they are paired one to one and marked as changed; leftover lines appear as plain additions or deletions. Word mode also highlights the differing words inside changed lines. “Ignore whitespace” removes every space and tab before comparing, so lines that differ only in spacing count as equal.

A few limits: text is split on line feeds, so if one version uses Windows line endings (CRLF) and the other does not, every line can show as changed unless whitespace is ignored. Long lines do not wrap; scroll sideways to read them. The comparison runs entirely in your browser, so confidential documents stay on your device.

Use cases & tips

Checking a revised contract or document

A supplier returns your draft and says only “minor edits”. Paste your version on the left and theirs on the right, switch to word mode, and a line such as “Payment is due within 30 days” against “Payment is due within 45 days” shows 30 and 45 highlighted inside the changed row instead of making you reread the paragraph. Go through the yellow rows first, since a quietly altered number or a deleted clause is exactly what a skim misses.

Config files and code snippets

Two config files that should match often differ only by an extra trailing space, indentation, or a capital letter. Turn on Ignore whitespace or Ignore case to see whether anything real remains. Pasting a value such as a timeout=30 line next to timeout=300 is caught immediately in word or character mode. The CRLF caveat matters here: a file saved on Windows and one saved on a Mac or Linux machine can look entirely different until whitespace is ignored.

Moved text and long comparisons

A diff aligns lines in order, so a paragraph you moved from the top to the bottom appears once as removed and once as added, not as a move. With long texts, use the previous and next change buttons instead of scrolling. If you pasted the versions into the wrong boxes, Swap sides flips the result so additions and deletions read the right way round. The unified view puts everything in one column, which is easier on a narrow phone screen.

When this beats the alternatives

An editor’s compare feature or git diff does the same job when the files already live in a project. This page is for the other cases: text from an email, a chat, a web form or a document you cannot put into version control. Because only plain text is compared, formatting from Word or a web page is lost when pasting, so it is not a replacement for tracked changes, and it does not merge versions. Load example shows how the colors look.

Frequently asked questions

How does the comparison work?

Lines are matched with the Myers diff algorithm (the jsdiff library). A block of removed lines directly followed by added lines is shown as changed lines, paired one to one.

What does “Ignore whitespace” do?

Before comparing, all spaces and tabs in each line are removed, like diff -w. Lines that differ only in spacing count as the same.

Is my text uploaded?

No. The comparison runs in your browser with JavaScript. Nothing is sent to a server or saved.