←

Text difference comparison

Instructions for use
Enter the original text and modified text separately. The tool uses the longest common subsequence algorithm for true line-by-line alignment: green indicates new additions, red indicates deletions, and the rest is unmodified content. All calculations are done in the local browser only.

How the comparison works

Both texts are split into lines, and the longest common subsequence (LCS) algorithm finds lines that appear in both in the same order. The remaining lines are marked as removed (red) or added (green), so inserting or deleting one line does not make every later line look changed.

Common uses

Compare two versions of a configuration file, code snippet, contract clause, edited article or data list. A changed line appears as one removal plus one addition, which makes line-by-line review easy. For lists where order does not matter, sort both sides the same way first.

Frequently asked questions

Is my text uploaded?

No. The comparison runs entirely in your browser, so it is suitable for content you would rather not send to a server. Nothing is kept after you close the page.

Do spaces and letter case matter?

Yes. Lines are compared exactly, so trailing spaces, tabs and case differences count as changes. Normalise formatting first if you only care about content.

How large can the texts be?

Each text can be up to 150,000 characters. Very many lines use a lot of browser memory; if the tool reports the input is too large, split it into parts.

Does it highlight changed words within a line?

It compares whole lines and does not highlight words within a line. To see word-level changes, put each sentence or phrase on its own line before comparing.

Text difference comparison

Good for comparing code, configurations, documents, and lists. Press Ctrl+Enter or Command+Enter to get started quickly; very large text should be broken into smaller pieces to avoid consuming too much browser memory.

settings