How to use
Use this diff generator to compare two text versions and copy a clean result.
- Paste the older version into Text A and the newer version into Text B.
- Optionally enable Ignore whitespace or Ignore case to reduce noise.
- Click Generate Diff.
- Use Copy Output to copy the plain diff.
FAQ
What does this diff generator output?
A unified-style diff where + lines are added, - lines are removed, and unchanged lines start with a space.
Is my text uploaded to a server?
No. The comparison runs in your browser; the tool JavaScript does not send network requests.
Can I ignore whitespace changes?
Yes—enable Ignore whitespace to treat repeated spaces and leading/trailing whitespace as equal for matching.
Can I ignore case differences?
Yes—enable Ignore case to match lines without considering uppercase/lowercase.
Why do I see a removed line followed by an added line?
That usually indicates a replacement (the line changed). With inline highlights enabled, word-level changes are emphasized inside the replaced lines.
How do I copy the diff?
Click Copy Output to copy a plain-text version of the diff (no HTML formatting).
What are the input limits?
To keep the tool fast and mobile-safe, very large inputs are blocked (character and line caps). If you hit the limit, compare smaller chunks.