Compare two texts online

Compare two texts by words, lines or characters and see what was added and removed side by side or inline. Shows a similarity score and exports a .patch.

🔒 Runs in your browser
0
Words added
0
Words removed
—
Similarity

About this tool

Paste an original and a changed version to see exactly what differs. This free diff checker compares by words, lines or characters, highlights additions and deletions side by side or in one text, and counts added and removed units along with a similarity percentage. No sign-up is needed and the comparison runs in your browser.

How to use

  1. Paste the original text on the left and the changed text on the right.
  2. Choose to compare by words, lines or characters.
  3. Pick a side-by-side or inline view and, if needed, ignore case or whitespace at line ends.
  4. Review the highlighted changes and download a .patch file if you need one.

Frequently asked questions

Are my texts sent to a server?

No. The comparison is done in your browser, so the texts you paste stay on your device.

Which comparison mode should I use?

Words suits prose and articles, lines suits code, lists and configs (with line numbers and changed words highlighted inside lines), and characters suits short strings where single letters matter.

What is the .patch file?

It is a unified diff of the two texts, the format used by git and the patch utility, saved as changes.patch.

What if the texts are very large?

Each comparison has a 3-second time limit so the page does not hang. If very large or very different texts hit that limit, switch to line mode.