Diff Checker
New Runs in browserCompare two texts, code files, or documents side by side — word-level diff highlighting, private and browser-based.
Last updated 31 Mar 2026
Compare two blocks of text, source code, or plain-text files with split (side-by-side) or unified (patch-style) diff views. Word-level highlighting shows exactly which words changed within modified lines. Ignore whitespace, case, or blank lines to focus on meaningful differences. All comparisons run privately in your browser.
Left file
Load any supported plain-text or code file.
Click to upload or drag and drop
TXT, MD, JSON, YAML, YML, XML, CSV, JS, JSX, TS, TSX, HTML, CSS, DIFF, PATCH up to 2MB
Right file
Compare a second file side by side.
Click to upload or drag and drop
TXT, MD, JSON, YAML, YML, XML, CSV, JS, JSX, TS, TSX, HTML, CSS, DIFF, PATCH up to 2MB
Left input
0 lines · 0 charsRight input
0 lines · 0 chars0
Added
0
Removed
0
Changed
0
Unchanged
100%
Similarity
No differences
Status
Split comparison
0 rowsPaste text or load files to compare
Diff Checker runs entirely in your browser and keeps both inputs local.
Compare pasted text, config files, Markdown, CSV, JSON, and source code without uploading anything. Split view is best for inspection, while unified view is ready to copy or download as a patch.
How to use
- 1
Paste or load your original text
Paste the original (before) version into the left panel, or click the file button to load a plain-text file from your device.
- 2
Paste or load the modified text
Paste the modified (after) version into the right panel, or load a second file.
- 3
Set comparison options
Toggle Ignore Whitespace, Ignore Case, or Ignore Blank Lines to reduce noise and focus on meaningful differences.
- 4
Switch between split and unified views
Use Split view for side-by-side inspection where added lines show in green and removed in red. Switch to Unified view for a patch-style stream of changes.
- 5
Export the diff
Click Download to save the unified diff as a .diff file for sharing, code reviews, or attaching to a bug report.
Frequently asked questions
Does Diff Checker upload my text or files?
What file types can I compare?
What is the difference between split and unified view?
What does word-level diff do?
Can I ignore formatting-only differences?
Can I use this to compare git commits?
Is there a character or file size limit?
Can I download the diff result?
Does this work for comparing JSON files?
Diff Checker gives you a fast, private way to compare two versions of any text —
source code, Markdown, JSON, YAML, XML, CSV, config files, or prose. Paste content
into the two panels or load plain-text files from your device, then switch between
split view (side-by-side columns) or unified view (patch-style with + and - lines)
depending on whether you prefer visual scanning or reviewing changes sequentially.
Word-level diff highlighting goes beyond line-level comparison: within any changed
line, the exact words that differ are highlighted, making it easy to spot a single
renamed variable or corrected typo inside a dense paragraph.
Noise-reduction options let you ignore whitespace differences, case changes, and
blank lines so you can focus on the actual content changes. Export the result as a
unified .diff patch file for use in code reviews, bug reports, or version control
workflows.
Every comparison runs entirely in your browser — no files are uploaded and no text
is sent to a server. Your private notes, credentials files, and proprietary code
stay on your device.
Related tools
JSON Formatter
Format, validate, and minify JSON instantly — with configurable indentation, error location, and tree view.
Regex Tester
Test regular expressions live with colour-coded match highlighting, capture groups, replace mode, and common presets.
YAML to JSON Converter
Convert YAML to JSON or JSON to YAML bidirectionally — type preservation, null handling, and configurable indentation.
SQL Formatter
Format, beautify, and minify SQL queries with dialect support for MySQL, PostgreSQL, SQL Server, BigQuery, and more.
Word Counter
Count words, characters, sentences, and paragraphs with reading time, speaking time, and keyword density.
Learn more
How to Compare Text and Code Files Online
Learn how diff works, how the Myers algorithm finds minimal edits, and how to compare text, code, configs, and JSON files in seconds online.
Git Commands Cheat Sheet: From Basics to Advanced
Complete git cheat sheet with 50+ commands, real examples, and ASCII branch diagrams. Used by 100M+ developers worldwide. Bookmark this reference.