TextArray
100% local

Text diff

Compare two texts line by line and see exactly what was added and removed.

Input
Text B
Output

Text diff

Paste the old version into text A, the new version into text B, and the differences appear line by line. Removed lines are marked with a minus, added lines with a plus, and untouched lines stay plain, so a change buried in a wall of text becomes obvious at a glance.

Use it whenever two versions of something drifted apart: two drafts of a contract, a config file before and after an edit, a translation against its source, a page of copy a client returned with silent changes, or two exports that should match but do not. The tally counts added, removed and unchanged lines, which is often the fastest answer to "did anything actually change here".

The comparison uses a longest common subsequence algorithm, the same approach version control tools use. That matters: it lines up the parts that did not move instead of declaring everything after an inserted line to be different. Insert one paragraph into a long document and you see one added line, not a hundred.

Two options loosen the match. "Ignore case" treats "Šišky" and "šišky" as the same line — useful when comparing data from systems that capitalize differently. "Ignore leading and trailing spaces" trims each line before comparing, so re-indented text does not drown the real changes. Windows and Unix line endings are always treated as equivalent. Very large inputs fall back to a faster line-by-line comparison so the tab never freezes.

Both texts stay in your browser. Nothing is uploaded, so you can safely compare contracts, private documents and unreleased code.

FAQ

Does it compare word by word or line by line?
Line by line. A changed line is reported as one removed line and one added line, so you can see both versions next to each other.
Why is an inserted paragraph not marking the whole rest as changed?
The tool uses a longest common subsequence algorithm, so it realigns on the lines that did not move. Only the genuinely new lines are marked as added.
Can I compare text that differs only in indentation?
Turn on "Ignore leading and trailing spaces" and each line is trimmed before comparing, so re-indentation is not reported as a change.
Is there a size limit?
No fixed limit. Above roughly 5,000 lines per side the tool switches to a faster line-by-line comparison so your browser stays responsive.
Are my texts uploaded anywhere?
No. Both texts are compared entirely in your browser and never leave your device.