Nifty Dev Tools
  1. Home
  2. Text Diff
Text

Paste two versions and see exactly what changed, line by line and word by word.

Original
Changed
Differences

Paste two texts above and the differences will show up here ✨

How to use Text Diff

  1. Paste the original on the left and the changed version on the right, or use Open file / drag a file onto either box. Comparing two files? Drop both at once: the first becomes the original, the second the changed version.
  2. Differences appear below as you type: red lines were removed, green lines were added, and inside changed lines the changed words are highlighted. When only part of a word changed, just those characters are marked (maxAttempt → maxAttempts).
  3. Switch between Side by side and Unified views. Long unchanged stretches are folded away; click to show them.
  4. Copy diff gives you a standard patch you can paste into a code review or apply with git apply.

Example

Original and changed:

total: order.total,
maxAttempt: 3,
total: latest.total,
maxAttempts: 3,

The diff marks the whole word order → latest (the words share too little), but only the added s in maxAttempts. Copy diff produces:

--- Original
+++ Changed
@@ -1,2 +1,2 @@
-total: order.total,
-maxAttempt: 3,
+total: latest.total,
+maxAttempts: 3,

Tips

  • Turn on Ignore whitespace to skip changes in indentation and spacing, handy after reformatting code.
  • Comparing JSON? Format both sides with the JSON Formatter first so the diff lines up nicely.
  • File names you open are used in the patch header (--- v1.txt / +++ v2.txt).

FAQ

Is my text uploaded?

No. The comparison runs in your browser, and files you open or drop are read right here, never uploaded. See the privacy page.

How does it decide what changed?

It finds the smallest set of added and removed lines (the same Myers algorithm git uses), then compares each changed line word by word, like GitHub. If most of a word stayed the same, only the changed characters are marked. Lines that were completely rewritten are simply shown as removed and added.

How big can the texts be?

Up to 20,000 lines per side and 20 MB per file. Big texts are compared in the background so the page stays responsive.