Diff Checker
Visually compare two texts. Line and word-level highlighting.
Frequently asked questions
This tool performs a line-level diff using the Myers diff algorithm, then a word-level diff within changed lines. This is the same approach used by git diff.
Side-by-side shows the original and changed text in two columns, making it easy to compare corresponding lines. Unified view shows all changes in a single column, prefixed with + (added) or − (removed), which is more compact for large files.
It produces a standard unified diff format (--- original, +++ changed, then lines prefixed with +, −, or space). This format is understood by patch, git apply, and most code review tools.
URLs have browser limits (typically 2,000–64,000 characters depending on browser). To keep links reliable, sharing is capped at 5,000 combined characters. For larger texts, copy and share the raw content instead.
Yes, and it preserves whitespace exactly, which matters for languages where indentation is significant (Python, YAML). The diff is purely character-based — it does not understand language syntax.