Text Diff
Free online text comparison tool, highlight differences
How Text Diff Works
Text diff (difference) compares two texts line by line and highlights what was added, removed, or changed. This is the same technique used by Git to show changes between commits. It helps you spot modifications between document versions, compare API responses, or verify configuration changes.
How to Compare Two Texts
Paste the original text in the left panel and the modified text in the right panel. The tool instantly shows added lines (highlighted) and removed lines. Review the differences side by side to understand what changed.
▶What diff algorithm does this tool use?
The tool uses a line-based diff algorithm that compares texts line by line. It identifies added lines, removed lines, and unchanged lines between the two inputs.
▶Can I compare code files?
Yes, the tool works with any text including source code, configuration files, JSON, XML, and plain text. Paste the two versions side by side.
▶Is there a character-level diff?
This tool performs line-level diff. For character-level comparison, the diff would show which specific characters within a changed line were modified.