Compare text

Compare added and removed lines in two documents.

Processed only in this browser
Input and settings
Processing options

Input and results are processed in this browser, without saving them to a server, URL or persistent browser storage. Clipboard content and downloaded files may remain on your device.

How to use this tool

  1. Paste the original and changed text.
  2. Choose whether to ignore edge whitespace or case, then compare.
  3. Read removals beginning with − and additions beginning with +.

Review one edited line

Input and settings
Original: apple Revision: pear
Result
- apple + pear

Unchanged lines are included with a whitespace prefix.

Processing rules and reading the result

A line diff is calculated; whitespace options affect the comparison criteria. It does not determine meaning, authorship or intent. Download the result as text for a review record.

Limits and checks before use

Each input is limited to 50,000 characters and 1,000 lines. Complex differences stop at time/edit-distance limits. This is neither a plagiarism test nor a Git patch file.

Common questions

Does one changed character mark the entire line?

Yes. Lines are the comparison units. Review the original files as well when inspecting fine-grained code changes.

Standards and references

Read alongside this tool