Compare two blocks of text line by line and highlight additions, deletions and changes, with a diff count. Ideal for proofreading, configs and code reviews.

What this tool does

Compares two texts line by line and shows exactly what changed — handy for code reviews, config edits and proofreading. All comparison happens locally.

Reading the result

Unchanged lines are grey; added lines are green and marked with +; removed lines are red, struck through and marked with -; modified lines are shown in yellow as old → new.

The summary reports total characters, total lines and the number of difference blocks.

How it works

The comparison uses a longest-common-subsequence algorithm over lines. An adjacent deletion and insertion are merged into a single "changed" line so the result is easier to read.

Limitations

Differences are detected per line, not per character: two lines that differ by one trailing comma are reported as a change, and leading or trailing spaces count as content. Very large inputs (tens of thousands of lines) may be slow because of the dynamic-programming table — compare them in chunks.

    Rating
    5 stars · Excellent
    Code
    No reviews yet — be the first to write one.