Compare two texts and find every difference instantly. View added, removed, and unchanged lines with character-level highlights. Switch between unified and side-by-side views, ignore whitespace or case changes, and copy the diff output. Free, runs entirely in your browser -- no data ever leaves your machine.
Compare text line by line with added lines highlighted in green and removed lines in red. Unchanged lines are shown for context so you always know where changes occur.
Enable inline diff to see exactly which characters within a line were changed. Small edits in long lines become immediately visible without scanning the entire line.
Switch between unified diff (single column with +/- prefixes) and side-by-side view (original and modified text aligned horizontally) to suit your review style.
All processing happens in your browser. No text is ever sent to any server, making it safe for comparing sensitive code, configs, credentials, or proprietary content.
Comparing text is one of the most fundamental operations in software development. Whether you are reviewing a pull request, auditing a configuration change, verifying a database migration, or proofreading a document revision, knowing exactly what changed between two versions is essential. A diff checker automates this process by computing the optimal set of changes that transform one text into another.
This diff checker uses a Longest Common Subsequence (LCS) algorithm to find the optimal alignment between the lines of your original and modified texts. Lines present in the original but not in the modified text are marked as removed (red). Lines present in the modified text but not in the original are marked as added (green). Lines that appear in both are shown as unchanged. When inline diff is enabled, changed line pairs are further analyzed with a character-level LCS to highlight exactly which characters differ.
diff command, which has been a core developer tool since the 1970s. Modern diff tools add features like syntax highlighting, character-level diffs, and multiple view modes.
-w flag in the Unix diff command. Note that completely blank lines are still compared normally.
port: 3000 to port: 8080, the inline diff will highlight just 3000 and 8080 rather than marking the entire line as changed. This makes it significantly easier to spot small edits in long lines of code or configuration files. Enable it with the "Inline diff" checkbox.
Check out our other free developer tools. Format JSON, parse AWS ARNs, decode JWTs, and more -- all from your browser with no sign-up required.