Paste two texts to instantly highlight every addition, deletion, and unchanged line. Supports inline character diff, side-by-side view, and ignoring whitespace or case differences.
A text compare (or diff) tool takes two pieces of text and highlights every line that was added, removed, or changed between them. It's the same technology used by Git, GitHub, and code review tools — but accessible directly in your browser without any setup.
Common use cases include comparing document revisions, spotting changes between config files, reviewing contract edits, and debugging why two strings that look identical are being treated as different by your application.
Frequently Asked Questions
No — all diffing happens entirely in your browser using JavaScript. Nothing is uploaded. This makes it safe to compare sensitive content like contracts, credentials, or private configuration files.
This tool uses the Myers diff algorithm — the same algorithm used by Git. It finds the shortest edit script (minimum additions and deletions) that transforms the original text into the modified text, which produces the most readable and intuitive diffs.
When enabled, multiple consecutive spaces and tabs are normalised to a single space before comparison. This is useful when comparing text that has been reformatted — indentation or alignment changes won't show up as differences, letting you focus on actual content changes.
On lines that are similar but not identical (a common case when a sentence is edited), inline character diff highlights the exact characters that changed within the line — not just the whole line. This is especially helpful for spotting small typos, number changes, or word substitutions.