Diff Checker
Developer UtilitiesCompare two text documents side by side with line-by-line diff highlighting for quick change identification.. Free, private — all processing in your browser.
Paste two versions of something into the two boxes and see what changed between them, line by line. Added lines are green, removed lines are red, and changed lines are highlighted in yellow, with a running tally of how many lines were added, removed, modified, or left alone. View it inline (one combined column) or side by side, whichever makes the change easier to read.
It's the quick answer to "what's different between these two?" — an old config versus a new one, a colleague's edit versus yours, two versions of a query or a snippet you pasted from different places. Rather than squinting to spot the one line that moved, you get the changes marked clearly.
Toggles for ignore-case and ignore-whitespace let you filter out the noise you don't care about, so a difference in capitalization or indentation doesn't flag a line as changed when the meaning is identical. Everything runs in your browser — nothing you paste is uploaded.
Features at a glance
Line-by-line comparison
Identifies added, removed, and modified lines with color coding.
Word-level diff in changed lines
Shows exactly which words differ within a changed line.
Side-by-side and unified views
Two visualization modes for different preferences.
Whitespace ignoring
Options to ignore trailing, all, or blank line whitespace.
Case insensitive mode
Treat Aa as equivalent for case-insensitive comparisons.
Sentence-level mode
For prose, diff by sentence rather than line for better readability.
Large document support
Up to 100,000 lines per side with smooth performance.
Client-side only
Documents stay in your browser; nothing uploaded.
How to use the Diff Checker
- 1
Paste first version
Drop the original text into the left panel.
- 2
Paste second version
Drop the modified text into the right panel.
- 3
Review differences
Changes are highlighted automatically.
- 4
Adjust options
Ignore whitespace or case if formatting differences are noise.
- 5
Copy or export
Copy the diff for sharing in emails, reports, or review tools.
When to use the Diff Checker
Writing and editing
- →Draft comparison: Compare two drafts of an article, book chapter, or proposal to see revisions.
- →Translation review: Compare original text with translation, or two translations for consistency.
- →Editorial workflow: Show track-changes-style diff of author and editor versions.
Legal and business
- →Contract redlining: Compare original and revised contract versions to identify all changes for review.
- →Policy updates: Diff old and new versions of policies, terms of service, privacy policy.
- →Meeting minutes: Compare draft and final meeting minutes to see corrections.
Data validation
- →Export comparison: Diff expected vs actual export output to spot data issues.
- →Configuration audit: Compare configuration files between environments or versions.
- →Backup verification: Compare backup content against source to verify integrity.
Worked examples
Text edit
Minor prose revision.
A: The quick brown fox. B: The quick red fox.
one word changed: brown -> red highlighted in the visual diff
Added paragraph
New content inserted.
A: two paragraphs B: three paragraphs (middle one new)
one paragraph added (green highlight) others unchanged
Whitespace only
Formatting difference.
same text with extra blank lines in B
with whitespace ignore: no meaningful change without: blank line additions shown
Large documents
Thousands of lines.
A and B are long docs with moderate changes
diff shows scattered changes across the document navigate with next/previous change controls
Translation review
Two translation versions.
A: first draft translation B: reviewed translation
word-level differences highlight which parts of sentences were edited
Under the hood
The comparison works at the line level. Both inputs are split on newlines and walked in parallel: matching lines are marked unchanged, a line present only on the right is an addition, a line present only on the left is a removal, and a line that differs in the same position is a modification. It uses a greedy longest-common-subsequence style pass with lookahead to line changes up, which is fast and handles the common cases well — inserted blocks, deleted blocks, and edits in place.
The ignore-case option lowercases both sides before comparing; ignore-whitespace collapses runs of whitespace and trims each side, so reformatting or indentation changes don't register as differences. The stats bar counts each category. Because the diff is line-based, a change is reported for the whole line — it highlights that a line differs but doesn't pinpoint the specific characters within it (in modify rows it shows the before and after so you can compare directly).
This is a lightweight in-browser diff, not the optimal-minimal-edit algorithm a version control system uses, so on heavily rearranged text the grouping can differ from what git shows. All processing is client-side.
Common problems and solutions
⚠Comparison is line-based
Differences are detected per line, not per word or character. A one-character change flags the whole line as modified. The modify view shows before and after so you can spot the exact difference yourself.
⚠Whitespace and case count by default
Unless you enable the ignore toggles, a difference in indentation or capitalization marks a line as changed. Turn on ignore-whitespace or ignore-case when the formatting difference isn't meaningful.
⚠Not the same algorithm as git
This uses a lightweight greedy diff, not the minimal-edit algorithm version control uses. On heavily reordered content the way changes are grouped can differ from git's output.
⚠Large inputs can slow down
Everything is compared in the browser as you type. Very large documents (many thousands of lines) may lag, since the diff recomputes on each change.
⚠No word-level highlighting
Within a changed line it won't underline just the altered words. For character-precise highlighting, a dedicated diff tool or git's --word-diff is better.
How it compares
Git's diff and dedicated merge tools (Beyond Compare, Meld) offer word-level highlighting, three-way merges, and syntax awareness. This tool is for the fast, no-setup case: you have two blobs of text and want to see the differences right now, without committing anything or opening an app. Paste, compare, done.
For diffing tracked files in a repository, git diff is the right tool. For comparing arbitrary text you've pasted — two config versions, two drafts, output from two runs — this is quicker, and the ignore-case and ignore-whitespace toggles handle the common "same content, different formatting" situation cleanly.
Questions and answers
▶What's the difference between inline and side-by-side view?
Inline shows one combined column with additions, removals, and changes marked in place — good for seeing the flow of edits. Side-by-side puts the two versions in parallel columns, which makes it easier to read each version on its own while spotting differences.
▶How do the ignore-case and ignore-whitespace options work?
Ignore-case compares without regard to capitalization, so 'Hello' and 'hello' match. Ignore-whitespace collapses and trims whitespace, so indentation or spacing changes don't register as differences. Use them to focus on meaningful changes.
▶Can it compare code and config files?
Yes. Paste both versions and it highlights the changed lines. It's line-based and format-agnostic, so it works for code, config, JSON, logs, or plain prose — though it isn't syntax-aware.
▶Does it show which characters changed within a line?
Not with per-character highlighting. It marks the whole line as modified and, in the inline view, shows the old and new versions side by side so you can compare them directly. For word-level diffs, use a dedicated tool.
▶Is my text uploaded anywhere?
No. The comparison runs entirely in your browser. Neither version you paste leaves your device.
Additional resources
- Wikipedia — diff — History and overview of diff utilities.
- jsdiff library — JavaScript diff library powering many web-based diff tools.
- Google Docs Track Changes — For collaborative editing with live change tracking.
- Microsoft Word compare — Word’s document comparison feature for business users.
- Diff algorithm survey — Detailed exploration of diff algorithm choices and tradeoffs.
Related tools
All Developer UtilitiesCase Converter
Convert between upper, lower, title, camel, snake, kebab, Pascal, CONSTANT cases
Code Diff Viewer
Compare two code files side by side with syntax highlighting, line-by-line diff, and support for any programming language.
Find and Replace
Find and replace text with regex support, case sensitivity, whole-word matching, and preview of all changes before applying.
JSON Diff
Compare two JSON objects — find added, removed, and changed properties
Line Counter
Count lines in text with separate totals for blank lines, non-blank lines, words, characters, and paragraphs for detailed statistics.
Remove Duplicate Lines
Remove duplicate lines from text with case-sensitive or case-insensitive matching, preserving original order or sorting the result.
Learn more
Explore more tools
200+ free tools that run in your browser.
Browse all tools →