Free online diff checker and text comparison tool. Compare two texts side by side with line-by-line, word-level, and character-level diff highlighting. Track changes, detect plagiarism, review code changes, and merge text differences instantly. Essential for developers and writers. 100% browser-based.
100% browser-based — your data never leaves your device
Find differences between two texts with line-by-line highlighting.
Count words, characters, sentences, and paragraphs in your text instantly.
Character CounterCount characters, words, sentences, and paragraphs in your text with real-time character analysis.
Slug GeneratorGenerate URL-friendly slugs from any text. Supports multiple separator styles.
Lorem Ipsum GeneratorGenerate placeholder text for your design and development projects.
URL Encode/DecodeEncode or decode URLs and query strings with proper percent-encoding.
URL Query ParserParse URL query parameters into a readable key-value table.
Diff CheckerFind differences between two texts with line-by-line highlighting.
Case ConverterConvert text between uppercase, lowercase, title case, sentence case, and more.
Base64 Encode/DecodeEncode or decode Base64 text instantly in your browser.
Regex TesterTest regular expressions with real-time matching, syntax highlighting, and cheat sheet.
Markdown PreviewWrite and preview markdown with live HTML rendering.
Markdown EditorWrite and preview markdown with live HTML rendering and syntax highlighting.
Diffing two versions of a document by eye is slow and error-prone. This tool computes the differences for you using a longest common subsequence algorithm and paints the changes in color:
The comparison runs locally in your browser, so both versions of your text stay on your device.
The most common trigger is reviewing code changes before a commit. Whether you are checking your own work or a teammate's, seeing exactly which lines were added, removed, or modified beats reading a summary. Word-level and character-level views sharpen the picture: a parameter added to a function signature, a variable renamed, or a typo fixed in a string all become visible the moment you zoom in on the changed lines.
Editors and writers use the same machinery on prose. Comparing document versions for editorial review, checking that only the intended section changed after a client asked for an amendment, or verifying a copyedit did not silently alter a contract clause are all jobs this tool handles cleanly. The color coding maps naturally to human review: you scan the red and green and only dig into yellow.
Operations and platform teams diff configuration files between environments. Development, staging, and production configs diverge in subtle ways, and the differences are often exactly the bug: a different API endpoint, a mismatched database URL, or a feature flag that only exists in one place. Pasting both configs side by side surfaces those discrepancies in seconds, which is far more reliable than grepping two files separately.
The text you compare here is rarely neutral. Code under review is unreleased work, and configuration files often contain API endpoints, database credentials, and feature flags that describe your production infrastructure. Uploading either to a comparison service hands an outsider a map of your system and a preview of your changes.
Because the diff is computed entirely in your browser, your source code and configuration stay local. You can review a sensitive branch or compare production-adjacent configs without creating a record of that content anywhere except your own machine.
Enter the first version of your text in the left panel.
Enter the second version of your text in the right panel.
Added lines are highlighted in green, removed lines in red, and changed lines in yellow.
Practical examples to help you get the most out of Diff Checker:
Left: 'function add(a, b) { return a + b; }'
Right: 'function add(a, b, c) { return a + b + c; }'
The added parameter 'c' is highlighted in the word-level diff.Compare environment-specific configs like development vs production settings to spot differences in API endpoints, database URLs, and feature flags.
Windows uses CRLF while Unix uses LF. Paste both texts into the tool first to normalize line endings, or use a text editor to convert them before comparing.
Trailing spaces and indentation changes are highlighted as differences. If you only care about content changes, ensure consistent formatting on both sides.
No. All diff processing happens locally in your browser.
The tool uses a longest common subsequence (LCS) algorithm for accurate diffs.
Compare two texts and see added, removed, and unchanged lines highlighted in color.
Within changed lines, see exactly which words were added or removed.
For finer granularity, view character-level differences within lines.
Both versions displayed side by side with synchronized scrolling.
Diff Checker is useful in a variety of scenarios across different workflows:
Reviewing code changes before committing to version control
Comparing document versions for editorial review
Finding differences in configuration files between environments
For spotting small edits like typo fixes or punctuation changes, switch to character-level diff mode for the finest granularity.
Use the side-by-side view when comparing long documents. Synchronized scrolling makes it easy to follow changes across both versions.
Explore more tools in the Developer Workspace workspace:
JSON Formatter
Format, minify, validate, and explore JSON with tree view, JSONPath queries, and multi-format export — the complete JSON workbench.
JSON Validator
Validate JSON data and detect syntax errors with detailed error messages and line numbers.
JSON Compare
Compare two JSON files side by side with real-time diff highlighting.
JSON Path Tester
Test JSONPath expressions against JSON data and see matched results.
JSON Query Tool
Extract values from JSON using dot-notation and bracket-notation paths.
JSON Schema Generator
Generate JSON Schema (draft-07) from sample JSON data automatically.