UTILS.
100% in-browser
±

Diff Checker

Compare two blocks of text and highlight the added and removed lines.

— output appears here —

About this tool

Paste two versions of any text or code and see a line-by-line comparison with added lines in green and removed lines in red, computed with a longest-common-subsequence algorithm. Perfect for spotting edits without a heavyweight tool.

Frequently asked questions

Does it compare word by word?
It compares line by line, which is the most useful granularity for code and documents. Reformat into shorter lines for finer comparison.
Is there a size limit?
It works on large inputs, but very long texts run an O(n×m) comparison, so extremely large files may be slow.

More tools