{}devfolio/tools

Text Diff

New

Compare two texts line by line and see exactly what changed.

Original
0 lines · 0 chars · 0 bytes
Changed
0 lines · 0 chars · 0 bytes

How to use the Text Diff

  1. 1Paste the original text on the left and the changed text on the right.
  2. 2Read the result: red lines were removed, green lines were added, with line numbers from both sides.
  3. 3Turn on Ignore whitespace or Changes only to cut the noise.

Questions

How are differences found?

With a longest-common-subsequence line diff, the same idea behind git diff. Removed lines are listed before added ones.

Is there a size limit?

Identical lines at the start and end are skipped first. After that, up to 4,000 changed lines per side can be compared.

Can I compare files?

Open them in your editor and paste the contents. No. Everything runs in your browser with JavaScript. Nothing you type or paste is sent to a server.

You might also need