Text Diff

Compare two texts and highlight the differences

๐Ÿ”’ Your text is processed locally

How to Compare Two Texts

  1. Paste the original. Put the earlier version โ€” the one you're comparing against โ€” into the left box.
  2. Paste the revision. Put the newer or edited version into the right box.
  3. Click Compare. The result appears underneath with the differences marked, so additions and removals stand out from the text that stayed the same.
  4. Review the changes. Read through the highlighted sections to confirm nothing was altered unintentionally.

What This Tool Does

Spotting what changed between two versions of a document is hard to do by eye, especially when the edits are small. This tool lines the two texts up and marks the differences for you. It's useful for checking an editor's revisions to your draft, seeing what moved in an updated contract or policy, confirming what a rewrite actually changed, or comparing two versions of a config file.

Your text is processed entirely inside your browser. Nothing is sent to a server, so contracts, drafts, and internal documents stay on your own device.

Getting a Useful Comparison

Which text goes on which side matters for how the result reads. Put the earlier version on the left and the newer one on the right, and the highlights describe what the revision did โ€” this was removed, that was added. Swap them and the same edits are described backwards, which is confusing when you're trying to review changes.

A comparison is also easier to read when the two texts are formatted the same way. If one version came from a word processor and the other from a plain-text editor, differences in line breaks and spacing can show up as changes even when the wording is identical. Pasting both through the same source, or tidying the line breaks first, gives a much cleaner result.

Frequently Asked Questions

Everything is marked as changed. Why?

Usually a formatting mismatch โ€” different line breaks, indentation, or invisible characters carried over from another program. Normalising the spacing in both texts first will narrow the result down to real edits.

Which text should go on the left?

The original, older version. The right side is the revision, so the highlights read as what the newer version changed.

Can I compare code with it?

Yes, for short snippets and config files it works fine. For tracking changes across a codebase, a version control tool will serve you better.

Is my text sent to a server?

No. The comparison runs locally in your browser, so nothing you paste ever leaves your device.