Difference Checker: Compare Two Texts, Code Files & JSON Online
This free online difference checker shows exactly what changed between two versions of any text, code file, or JSON document. Paste or upload your content, choose how precise you want the comparison, and see additions highlighted in green and removals in red. Everything runs instantly in your browser, with nothing sent to a server.
Most diff tools give you a flat list of changes. This one goes further. Split view places both versions side by side so your eye can move directly to what's different on each line. Word-level diff then runs a secondary comparison on each changed line, highlighting the specific words that changed rather than the entire line. A live similarity score shows you at a glance how much the two texts overlap.
How to compare two texts
- Paste or upload the original version into the left panel and the revised version into the right panel. You can drag and drop a file directly onto either panel.
- Choose a mode: Lines for code and documents, Words for prose, Characters for symbol-level changes.
- Tune the options: Ignore whitespace, Ignore case, Trim lines, or Pretty JSON to remove formatting noise.
- Review the diff: switch between Split and Unified views, jump between differences with the ↑ ↓ buttons.
- Export: copy to clipboard, download as .txt, or download as a colored .html file.
Advanced features not found on other diff tools
True side-by-side comparison
Unlike most diff tools that only show a single-column unified output, Split view places original and changed text in two aligned columns, matching unchanged lines side by side so your eye only moves to what's different.
Highlights the exact changed word
When a line changes, a secondary word-by-word comparison runs on that line pair. Removed words are struck through in red; added words are underlined in green. No more scanning an entire line to find the one word that changed.
Instant similarity percentage
A live badge shows what percentage of the text is identical. Green means mostly unchanged, yellow means moderate edits, red means heavy rewrites. Useful when you need a quick read before diving into the full diff.
Jump to next / previous difference
Click the ↑ ↓ arrows in the toolbar to scroll directly to each difference in sequence. No more manual page-scrolling through unchanged lines to find the next change.
Export as colored HTML or plain .txt
Download the diff as a self-contained .html file with green and red highlights that opens in any browser, perfect for attaching to pull requests, bug reports, or email. Or grab the classic unified .txt format.
Smart JSON normalization
Pretty JSON reformats both sides consistently, and Sort keys alphabetizes every object before comparing. This means a JSON diff only flags real value changes, not accidental differences in whitespace or key order.
What people use this diff checker for
- Code review: compare two versions of a function, config file, or script before merging. Use Lines + Split view to see exactly what changed in each function.
- Document version control: check what was added or removed between two drafts of a report, contract, or article without a version control system.
- API response comparison: diff JSON responses from staging vs production with Pretty JSON and Sort keys to ignore formatting noise and focus on value differences.
- Contract and legal review: compare two versions of an NDA, SLA, or terms of service document. Runs client-side, so no confidential content is shared.
- CSV and data export verification: paste two exports and use Lines mode to spot rows that were added, removed, or modified between reporting periods.
- Log file analysis: upload two log snapshots and see which lines appeared or disappeared, useful for debugging environment-specific issues.
- Content proofreading: compare an original article against an edited draft in Words mode to review every word-level change an editor made.
- Configuration file audits: diff two server config files (.yaml, .ini, .env) to confirm what changed between a working and broken environment.
Your privacy: text never leaves your browser
The entire diff algorithm runs in your browser using JavaScript. No text is sent to any server, no data is logged, and nothing is stored between sessions. You can safely compare private source code, confidential contracts, internal API payloads, and personal documents without any risk of data exposure.
Frequently asked questions
How do I compare two texts online for free?
What is the difference between split view and unified view?
What is word-level diff and how does it work?
What does the similarity score mean?
How do I compare two JSON files online?
Which file types can I upload and compare?
Is my text sent to a server?
What does Ignore whitespace do?
What is the difference between Lines, Words, and Characters mode?
How do I export the diff result?
How do I jump between differences without scrolling?
Why do I see unexpected results in the diff?
Can I compare CSV or spreadsheet data?
Can I compare large log files?
Can I use this tool to check contract or legal document changes?
Related tools
JSON Formatter
Format and validate JSON before comparing
Text Cleaner
Remove noise from text before running a diff
Word Counter
Count words, characters, and lines in any text
Find and Replace
Bulk-replace text in a document before comparing
Remove Duplicates
Deduplicate lines to simplify a comparison
Sort Lines
Sort lines alphabetically to normalize order
Case Converter
Normalize case before an ignore-case diff
URL Encoder / Decoder
Decode URL-encoded strings before diffing