Compare two texts and see exactly what changed — word by word, character by character. Powered by the Myers diff algorithm (used by Git) and Google’s Diff‑Match‑Patch engine. Perfect for code reviews, plagiarism checking, document revisions, and collaborative editing.
A text diff (difference) algorithm identifies the minimal set of insertions, deletions, and substitutions required to transform one text into another. This tool implements the Myers diff algorithm (1986), which is widely regarded as the foundation of modern version control systems (Git, Mercurial) and collaborative editors. The Myers algorithm finds the shortest edit script (SES) using dynamic programming with O(ND) time complexity, delivering both speed and accuracy for real-world documents.
“Given two sequences A and B, the diff problem seeks a minimal set of edits — insert, delete, substitute — to transform A into B.”
Our implementation is augmented with character‑level granularity using the Google Diff‑Match‑Patch library, which adds semantic cleanup and word‑boundary awareness for human‑readable diffs.
The diff engine preserves tabs, multiple spaces, zero‑width spaces, emojis, and unusual Unicode. Click the “Complex Character Test” preset above to see how it accurately highlights a single zero‑width joiner or a tab‑to‑space conversion. This demonstrates the algorithm's ability to handle real‑world messy text, making it reliable for code, markup, and multilingual documents.
"Hello\tWorld! This is a test. ?""Hello World! This is a test. ?"<ins> tags (green background), deletions in <del> (strikethrough + light red). Statistics are derived from the edit list.
A technical writing team used this diff checker to compare API documentation across two major releases. They identified 87 changed parameters, 15 new endpoints, and 4 deprecated methods within seconds — reducing manual review from 3 hours to 12 minutes. By exporting the visual diff, the team ensured release notes were 100% accurate. The same tool is now integrated into their documentation workflow.
Patch generation, code review dashboards, Git commit previews, conflict resolution.
Redlining contracts, highlighting modifications between negotiation drafts, compliance audits.
Compare source vs. translated strings, track updates in multilingual projects.