Text tools

Text diff

Compare two texts line by line and download a plain unified diff.

Processed locally

Up to 1,000,000 characters and 2,000 lines per side. Line endings normalize to LF; the final newline remains significant. Output is plain text.

Your answer will appear here.

Help and method

A bounded longest-common-subsequence comparison finds line additions and removals. The unified diff contains one complete-file section; minus removes and plus adds.

Methods and reliability

Worked example

An example you can try or adapt to your own values.

Original text
α β
Changed text
α γ

Result

--- before +++ after @@ -1,2 +1,2 @@ α -β +γ