Text diff

Comparison happens in your browser. util.work does not send your text to a server.

Left

Right

Diff

+2 2
apple
banana
+blueberry
cherry
date
+elderberry

What this diff tool does

This page compares two pieces of text line by line and highlights the lines that were added or removed.

How the diff works

The tool uses a longest-common-subsequence algorithm on lines. Lines that match exactly are shown unchanged, while inserted or removed lines are colored. The line order is preserved.