Text Tools

Text Compare (Diff Checker)

Compare two versions of a text and highlight every difference.

Spot every change between two versions

When a contract, an essay, a web page or a piece of code is edited, it is hard to see exactly what changed by reading both versions side by side. A difference checker, often called a diff tool, does it for you. It lines up the two texts and highlights added content in green and removed content in red, so you can review changes in seconds.

How to compare texts

  1. Paste the original version on the left and the new version on the right.
  2. Choose Lines for code, lists and documents, or Words to see small edits inside sentences.
  3. Tick Ignore upper/lower case or Ignore extra spaces if those changes do not matter to you.
  4. Click Compare. Lines starting with + were added and lines with − were removed.

How the comparison works

The tool uses the longest common subsequence (LCS) algorithm, the same idea behind classic diff programs and version control systems like Git. It finds the largest set of lines (or words) that appear in both texts in the same order. Everything outside that common part is marked as added or removed. A changed line shows as the old line removed and the new line added, so you can see both versions.

Practical uses

Frequently asked questions

Is there a size limit?

Comparison runs in your browser and works well for documents of a few thousand lines. Very long texts compared word by word may be too large; compare by lines instead.

Are my documents uploaded?

No. Both texts stay on your device, which makes the tool safe for confidential documents.

Can I compare JSON?

Yes. For the clearest result, format both with the JSON Formatter and sort the keys first.