Diff checker
Text never leaves this browserPaste two versions of a text, or drop two files, and see every added and removed line. Switch between a side-by-side view and a unified patch you can copy or download. The comparison runs in this tab, so the text is never uploaded.
How to use it
- Paste the original text on the left and the changed text on the right, or choose a file for each side.
- The diff updates as you type. Tick Ignore whitespace or Ignore case if you only care about the words, and pick Side by side or Unified.
- Read the +/− counts, then copy the unified patch or download a .diff file.
Details
- Views
- Side by side shows both versions with aligned line numbers. Unified is a standard patch you can save as a .diff file
- Options
- Ignore whitespace collapses runs of spaces and trims each line. Ignore case treats Hello and hello as the same line
- Limits
- Each side can be up to 200,000 characters or 20,000 lines
- Privacy
- The comparison runs in this tab. Nothing is sent to a server
Questions
Are my files uploaded?
No. The page loads its code once, then reads and processes your files inside the browser tab. Nothing is sent to a server; you can confirm it in your browser's network panel while a file is processed.
Is this a Git diff?
The unified view uses the same --- / +++ / @@ markers as a Git patch, so you can paste it into a review or save a .diff file. It compares the two texts you pasted, not a Git repository, and it does not run git on your machine.
Can I compare Word or PDF files?
Not as formatted documents. If you can copy the text out, or save a .txt, .md, .json or similar file, drop or paste that. A Word or PDF file dropped here would be read as raw bytes and would not look like the page you see in Word.
What does Ignore whitespace do?
It treats a run of spaces or tabs as a single space and ignores spaces at the start or end of a line, so a change in indent or padding does not show as a difference. The text you download in the patch is still the original text, not the normalised form.
Is there an API?
Yes. The MCP server on this site has a diff tool that takes two strings and returns the same counts and a unified patch. There is no separate HTTP API for files.