Diff Checker
Updated Free mock REST & WebSocket APIs
Paste two versions of a text, or open two files, to see exactly what changed. Removed text is red and added text is green, with changed words highlighted inside each line. The comparison runs in your browser, so nothing is uploaded.
+5 lines added·−5 removed
| 1 | Dear team, | 1 | Dear team, |
| 2 | 2 | ||
| 3 | Thanks for joining the kickoff meeting on | 3 | Thanks for joining the kickoff meeting on Tuesday. |
| 4 | The launch is planned for March | 4 | The launch is planned for March 10. |
| 5 | Please send your feedback by Friday. | 5 | Please send your feedback by Friday. |
| 6 | 6 | ||
| 7 | Next steps: | 7 | Next steps: |
| 8 | - Finalize the design | 8 | - Finalize the design |
| 9 | - | 9 | - Test on mobile and tablet |
| 10 | - | 10 | - Prepare the press release |
| 11 | 11 | ||
| 12 | Best, | 12 | Best regards, |
| 13 | Sam | 13 | Sam |
🔒 Compared in your browser — neither text is uploaded.
How to compare two texts
- Paste the original into the left box and the new version into the right, or use Open file on each side.
- Pick Side by side or Inline, and Lines (best for code and lists) or Words (best for prose).
- Turn on Ignore whitespace or Ignore case to hide differences that don't matter, such as re-indentation.
- Copy the result as a unified diff to paste into a code review or ticket, or download it as a
.difffile you can apply withgit applyorpatch.
How the comparison works
The diff checker uses the Myers diff algorithm (Eugene Myers, 1986), the same one used by git diff and GNU diff. It finds the smallest set of insertions and deletions that turns the original into the new version. Lines that changed are paired up and compared again word by word, so a one-word edit in a long line is easy to find.
Reading a unified diff
--- original.txt +++ changed.txt @@ -3,2 +3,2 @@ -Thanks for joining the kickoff meeting on Monday. +Thanks for joining the kickoff meeting on Tuesday. The launch is planned for March 3.
---and+++name the old and new file.@@ -3,2 +3,2 @@means this hunk starts at line 3 and covers 2 lines in each version.- Lines starting with
-were removed,+were added, and a space means unchanged context (3 lines around each change by default).
Tips
- Everything shows as changed? The files probably use different line endings (Windows CRLF vs Unix LF) or tabs vs spaces. Line endings are normalized automatically, and Ignore whitespace handles indentation.
- Comparing prose? Use Words mode. Paragraphs re-wrapped at a different width will still line up.
- Comparing JSON? Format both sides the same way first with the JSON formatter (sort keys on) so the diff shows only real changes.
Related tools
Embed this tool on your site
Browse all embeddable tools →Free for blogs, HR, payroll and contractor sites: copy one snippet — the widget sizes itself and matches your colors.
Get the embed code
Frequently asked questions
Is my text and files uploaded anywhere?
No. Everything runs in your browser, so your text and files never leaves your device. Nothing is logged or stored on a server.
Can I compare two files?
Yes. Click Open file above each box to load any text file: code, CSV, JSON, Markdown, logs and so on. Files are read locally by your browser. Word and PDF files are binary, so copy their text into the boxes instead.
Is there a size limit?
There's no fixed limit. Files with tens of thousands of lines compare in well under a second. For very large, very different inputs, the tool stops refining after a couple of seconds and marks the remaining block as replaced, so the tab never freezes.
What does 'ignore whitespace' do?
Lines that differ only in spaces or tabs, like re-indented code or trailing spaces, count as equal, the same as diff -w. 'Ignore case' does the same for upper- and lowercase letters.
Can I apply the diff as a patch?
Yes. The downloaded .diff is a standard unified diff. Rename the file headers to your real paths if needed, then run patch -p0 < changes.diff or git apply changes.diff.
Your business here? Sponsor this tool from $16/week. See placements