Text Diff Viewer
Line diff
- Added
- 0
- Removed
- 0
- Unchanged
- 0
Diff output will appear here.
About the Text Diff Viewer
Paste an original and a modified version of any text, code or list to see exactly which lines changed. Added lines are highlighted in green and removed lines in red, with a count of added, removed and unchanged lines.
How to use it
- 1 Paste the first version into Original text.
- 2 Paste the new version into Modified text.
- 3 Read the Line diff: lines marked + were added and lines marked - were removed.
- 4 Check the Added, Removed and Unchanged counts, or click Clear both to start again.
Frequently asked questions
It compares the two texts line by line and keeps the longest sequence of lines they have in common, the same idea the classic diff tool uses. Lines found only in the original are marked removed, and lines found only in the modified text are marked added.
As a removed line followed by an added line. The comparison works on whole lines, so even a one-character edit marks the old line as removed and the new version as added.
Letter case and leading spaces matter, so "Hello" and "hello" are different lines. Spaces and tabs at the end of a line are ignored, and Windows, Mac and Unix line endings are treated the same.
Each side holds up to 50,000 characters and 1,000 lines. Longer text is trimmed to 50,000 characters, and if either side has more than 1,000 lines a notice appears instead of the diff.