How to use Text Diff
Compare two text versions line by line and highlight additions, removals, and unchanged content.
- 01Paste the old version on the left and new version on the right.
- 02Select Compare text.
- 03Review additions, removals, and the summary.
Reading the comparison
Green plus rows were added to the new version, red minus rows were removed from the old version, and neutral rows are unchanged. The comparison uses a longest common subsequence.
Safe limits for large text
To prevent a diff matrix from exhausting browser memory, each version is limited to 1,500 lines and about 1 MB. Oversized input produces a clear warning instead of freezing the page.
Frequently asked questions
Can I compare source code?
Yes. It compares plain text by line without parsing a specific programming language.
Why is there a line limit?
Browser-side diffing needs memory; the limit keeps unusually large comparisons responsive.