Compare two text blocks

Compare two text blocks with a line-by-line longest-common-subsequence diff.

Local processing · Nothing is uploaded · 1 MB input limit

Input & settings

Paste text or drop a UTF-8 text file
Ready. Enter your input to begin.

How to use this tool

Paste the original and changed blocks. The downloadable JSON lists equal, inserted and deleted lines.

Limits and behavior

Line endings normalize to LF. Maximum 2,000 lines per block and 1,000,000 line pairs. The comparison is exact and case sensitive. Maximum total input 1 MB, output 3 MB, JSON nesting 64 levels. Processing stays in your browser worker. Input is limited to 1 MB and output to 3 MB. No input content is saved by CraftAI.

Compare text differences line by line

Check two pasted text blocks to identify changed, inserted and deleted lines. This online text diff tool uses a line-by-line comparison and can export the structured differences as JSON.

Does text comparison detect individual changed letters?

The comparison operates on lines. A revised line may appear as a removal and an insertion rather than a character-level edit.

Built on Hatchable