Text Diff Tool

Compare Texts
Statistics
Added 0
Removed 0
Modified 0
Unchanged 0
Diff Result

Enter text in both fields to compare

Comparing Text Without Leaving the Browser

Paste two versions and see additions, deletions and changed lines highlighted side by side or as a unified diff. Comparison runs locally, so config files with secrets or unreleased copy stay on your machine. The ignore-whitespace and ignore-case switches help when the only differences are formatting noise.

Under the hood this is the same family of algorithms git uses to build commits - how Myers diff finds the minimal edit script is walked through in diff algorithms explained. If both inputs are JSON, the JSON Diff tool gives better results: it compares by key, so reordered properties do not show up as changes.

Text Diff Questions

It finds the longest common sequences between two texts, then highlights what's added, removed, or changed. Same algorithm Git uses under the hood.

Green = added (in new, not in old). Red = deleted (in old, not in new). Unchanged stays plain. Character-level changes get highlighted within lines.

Works for anything text-based - code, configs, markdown, SQL, whatever. Paste two versions of a file and see every addition and deletion highlighted line-by-line and character-by-character.