Diff Checker – Compare Text Online

Compare two texts or files and see exactly what changed, side by side or inline, with changed words highlighted. Free online diff tool, nothing uploaded.

How to compare two texts

  1. Paste the original on the left and the new version on the right, or open a file on each side.
  2. Click Compare. Removed lines are red, added lines green, and in edited lines the words that changed are highlighted.
  3. Choose Side by side to see both versions in columns, or Inline to see them one under the other.

When to use a diff checker

  • Find what changed between two versions of a contract, essay or article.
  • Review changes to code or configuration files without setting up Git.
  • Check whether two long lists or exports are really identical.
  • Spot accidental edits after copying text between documents.

Frequently asked questions

Is my text uploaded to compare it?

No. The comparison runs in your browser, so contracts, code and other private documents never leave your computer. Files you open are read locally too.

How does the diff checker work?

It uses the Myers diff algorithm (the same idea behind git diff) to find the smallest set of added and removed lines that turns the original into the changed text. Within lines that were edited, the exact words that changed are highlighted.

Can I compare files?

Yes. Use "Open file…" above each box to load a text file: code, CSV, JSON, logs, Markdown and so on. Word and PDF files aren't plain text, so copy their text in instead.

Can I ignore whitespace or capitalization?

Yes. Tick "Ignore case" to treat Hello and hello as the same, or "Ignore whitespace" to skip differences in spaces and indentation, which is handy when comparing reformatted code.

Related tools