Text Diff Tool
Paste two pieces of text and see exactly what changed. Additions are highlighted in green, deletions in red, and unchanged lines fade into the background. Works on prose, code, JSON, YAML, log output, or any text where you need to track what moved between two versions.
Why Diffing Matters
Most editorial and engineering work is iterative: a draft, then a revision, then another. When the changes get past a sentence or two, eyeballing them stops working. A diff turns what changed? into a visual answer in under a second. The same principle drives version control systems like Git, but you don't need a repo or a commit history to compare two snippets — just paste and look.
This tool runs the diff entirely in your browser using a longest-common-subsequence algorithm. Nothing uploads, which matters if you're comparing draft contracts, internal documents, or anything covered by an NDA. For structural comparisons of formatted code, pair this with a JSON formatter or code beautifier first so whitespace doesn't dominate the diff.
How It Works
The diff operates line by line. Each line in the original is matched against the modified version using a Myers-style algorithm — the same family of algorithms Git's git diff uses. Lines present in both versions stay neutral; lines only in the original render as deletions; lines only in the modified version render as additions. The ignore whitespace toggle collapses leading/trailing space differences before comparison, useful when the only change is indentation. Ignore case treats Hello and hello as the same line.
Word-level highlighting inside changed lines is a stretch goal for a future revision. For now, line granularity catches the overwhelming majority of real review cases, and it scales to thousands of lines without slowing the browser.
Common Use Cases
Writers comparing draft and revised sections of a piece. Developers reviewing what a teammate changed before pulling it down. Lawyers running redlines on contract clauses (use the HTML entity encoder first if your clauses contain quotes that get mangled in transit). Sysadmins comparing config files between staging and production. Anyone reconciling two slightly-different exports from the same source system to find the field that drifted.
How We Compare
Standalone desktop tools like Beyond Compare, Kaleidoscope, and Araxis Merge cost between $30 and $130 per seat and add directory-level and three-way merge features that matter for serious engineering work. Web-based diffs from Diffchecker, TextCompare, and similar services do what this tool does — but they upload your text to their servers. If your inputs are private, that's a hard non-starter. This tool gives you the same visual diff with the privacy guarantee that the data never crosses the network.
Frequently Asked Questions
Built by Derek Giordano · Part of Ultimate Design Tools