Text

Text Diff Checker

Input

Compare original and changed text line by line.

Deleted lines are red, added lines are green.

Output

Line by Line Diff

Hello
- World
+ Earth
Test

Frequently Asked Questions

What does a diff checker do?
A diff checker compares two texts line by line and highlights additions (present in the second text but not the first), deletions (present in the first but not the second), and unchanged lines. It visualizes what changed between two versions.
What algorithm does this tool use for diffing?
This tool uses the Myers diff algorithm — the same algorithm used by Git. It finds the shortest edit script (minimum number of insertions and deletions) to transform the original into the modified text, producing the most logical-looking diff.
Can I use this for comparing code?
Yes. Comparing source code files, SQL queries, configuration files, or any plain text is fully supported. For large files (thousands of lines), the diff calculation may take a moment. Unlike Git, this tool performs character-level or line-level comparison without context of version history.