Home/Tools/Diff Checker
Tools

Diff Checker

Original text
Changed text
About this tool

Compare two texts and see exactly what changed

This Diff Checker compares two versions of a text line by line and highlights exactly what was added (green) and removed (red). Paste the original on the left, the changed version on the right, and see the differences instantly — contracts, code, essays, configuration files, translations, anything.

Like all our tools, the comparison runs entirely in your browser. Neither text is uploaded anywhere — which matters when you're comparing contracts, legal documents, or proprietary code that shouldn't be pasted into a random website's server.

Common uses

  • Contracts & documents — verify what a counterparty actually changed between versions
  • Code — compare two versions of a file without setting up git
  • Config files — find the one changed line between a working and broken configuration
  • Content editing — see edits between drafts when track-changes wasn't used

Example

You receive "contract_v2.docx" and want to know what changed from v1. Copy the text of each version into the two boxes and click Compare.

The output shows unchanged lines in white, removed lines in red with a −, and added lines in green with a +. The counters at the top summarise the scale of the changes at a glance.

FAQ

Frequently Asked Questions

How do I compare two texts for differences?

Paste the original text into the left box and the changed version into the right box, then click Compare. Lines that were removed show in red with a minus sign, added lines show in green with a plus, and unchanged lines stay plain.

Is it safe to compare confidential documents here?

Yes — the comparison runs entirely in your browser with JavaScript. Neither text is transmitted, stored, or logged anywhere. You can disconnect from the internet after loading the page and the tool keeps working. That's an important difference from most online diff sites, which process your text server-side.

What is a diff?

A diff (from 'difference') is the standard way to show changes between two versions of a text: a minimal list of lines removed from the old version and lines added in the new one. The format comes from the Unix diff program (1974) and powers code review, version control, and document comparison everywhere.

How does a diff algorithm work?

Most diff tools, including this one, find the Longest Common Subsequence (LCS) — the largest set of lines that appear in both texts in the same order. Everything in the old text that isn't part of the LCS is 'removed'; everything in the new text that isn't is 'added'. This produces the minimal, most readable set of changes.

Can I compare two Word documents?

Copy the text out of each document (Ctrl+A, Ctrl+C) and paste into the two boxes. Formatting (bold, fonts) is not compared — only the text content. For tracked formatting changes, Word's built-in Review → Compare feature is the right tool; for pure text changes, a diff is faster and clearer.

Can I compare code files without git?

Yes — paste the two versions and compare. It's line-based, the same granularity as git diff's default output. For whole projects with many files you'll want proper version control, but for a quick 'what changed between these two files' check, pasting is faster.

Why does the diff show a whole line as changed when only one word changed?

This tool compares at line level: if any character in a line differs, the old line shows as removed and the new one as added. Line-level diffs are the standard for code and structured text. Word-level (inline) diffs exist but get noisy for large texts — reading the red/green line pair side by side shows the changed word quickly.

What do the + and − symbols mean in a diff?

Minus (−, red) marks lines that exist in the original but not in the changed version — they were deleted or modified. Plus (+, green) marks lines that exist only in the new version — added or the modified replacement. A modified line appears as a −/+ pair.

Is there a limit to how much text I can compare?

The tool handles thousands of lines comfortably. Very large pairs (where lines-in-A × lines-in-B exceeds ~4 million) are declined to keep your browser responsive — split the comparison into sections if you hit that.

How is this different from plagiarism checking?

A diff compares two specific texts you provide and shows literal line changes. A plagiarism checker searches one text against a huge corpus (the web, academic databases) for similar passages. If you already have both texts, a diff gives an exact, deterministic answer.

Does whitespace count as a difference?

Yes — a line with an extra space or a tab instead of spaces is a different line, which is often exactly what you need to find in code and config files (indentation bugs, trailing spaces). If you want to ignore whitespace, normalise both texts first — paste them through a find-and-replace.

Can I merge the two versions after comparing?

This tool shows differences; merging is manual — copy the lines you want from each side. For frequent three-way merging (yours, theirs, common ancestor) use a dedicated merge tool like the one in VS Code or git mergetool.