Text diff — highlight additions and removals line by line, locally
Compare two texts line by line
Loading tool…
About this tool
Want to see exactly which lines changed between two versions of a config? Paste both texts to find identical, added and removed lines using the longest common subsequence — green for additions, red for removals. You can ignore case and leading/trailing whitespace, and highlight character-level changes within a line. Text is compared locally and never uploaded.
FAQ
What algorithm is used?
A longest common subsequence (LCS) for line-level matching, suited to configs, code and lists that change line by line. Very large files (tens of thousands of lines) will be slow.
Can it ignore whitespace and case?
Yes. Tick "Ignore case" and "Ignore leading/trailing spaces" — useful when a formatter has changed the text.
Is my text uploaded?
No. Comparison happens entirely in your browser and neither pane is sent to a server.