Side-by-side or unified diff
Read changes in two columns, or switch to a single-column unified diff exactly like git diff.
Free online diff checker
Compare two texts, files or code and see the differences instantly: added lines, removed lines and changed words, side by side, git diff style. Private and free, right in your browser.
Read changes in two columns, or switch to a single-column unified diff exactly like git diff.
See which words and characters changed within a line, not just which lines are different.
Open or drag and drop two files to compare them. Works with any plain-text file up to 50 MB.
Skip differences in spaces, tabs, indentation or capitalization to focus on the changes that matter.
Compares files with 100,000+ lines in a background thread, so the page never freezes.
Nothing is uploaded. Your text is compared on your own device, so it's safe for confidential work.
Compare source code in JavaScript, TypeScript, Python, Java, C#, C++, Go, PHP, Ruby and any other language to review changes before a commit.
Find the difference between two config files, API responses, data exports or spreadsheets saved as CSV.
Compare two versions of an essay, article, contract or translation and see exactly what was edited.
Compare two lists of names, emails, IDs or URLs to find which items were added or removed.
Check two SQL queries or database schemas, or compare log files to spot what changed between runs.
Compare two strings or short snippets character by character to find a hidden typo or extra space.
@@ -12,7 +12,9 @@ give the starting line and number of lines in each version. Unchanged lines in between are collapsed; click Expand to show them.Paste the original text into the left box and the changed text into the right box. DiffDuo compares them instantly and highlights every difference: removed lines in red, added lines in green, and the exact changed words inside each line.
A diff checker (or diff tool) finds the differences between two versions of a text. It shows which lines were added, deleted or changed, the same way git diff shows changes in source code.
No. The comparison runs entirely in your browser, so your text and files never leave your device. This makes DiffDuo safe for confidential documents, code and configuration files.
Yes. Click Open or drag and drop a file onto either box. Any plain-text file works, including code, JSON, XML, YAML, CSV, SQL, Markdown, HTML and log files, up to 50 MB each.
Turn on Ignore whitespace to treat lines as equal when they differ only in spaces, tabs or indentation, and Ignore case to ignore uppercase and lowercase differences.
Split view shows the two texts side by side, which is easiest to read. Unified view shows a single column with removed lines marked with a minus and added lines marked with a plus, the same format as git diff and patch files.
Yes. DiffDuo compares files with hundreds of thousands of lines in a background thread, so the page stays responsive. Two 4 MB files with 100,000 lines each compare in well under a second.
Yes. DiffDuo is completely free, with no sign-up, no limits on the number of comparisons and no ads.