Text Diff Viewer
Paste two texts side-by-side and instantly see what changed — additions highlighted in green, deletions in red, unchanged lines in grey. Line-by-line diff similar to git diff. Useful for comparing code snippets, configs, API responses, or document revisions.
Ctrl+Enter to run · Ctrl+K to switch tools · Recent button shows input history
Let AI do the hard part. Fix broken HTML, convert to email-safe HTML, or clean up any markup in one click — 3 free AI runs per day, no account needed.
Try the AI HTML FixerFAQ
How does the diff algorithm work?
This tool uses a longest-common-subsequence (LCS) diff, the same approach used by git diff and Unix diff. It finds the minimal set of additions and deletions to transform text A into text B.
Can I diff code?
Yes — the diff is purely text-based, so it works on any language. For code, the output closely matches what you'd see in a git diff.