Use this free diff checker to compare two versions of a text or code file and see exactly what changed. Paste the original on the left and the new version on the right, then click Compare. Removed lines are marked in red, added lines in green, and changed words inside a line are highlighted so small edits are easy to spot. You can switch between side by side and unified views, hide unchanged lines, and copy or download the result as a standard unified diff.
Reading two long files line by line is slow and easy to get wrong. A diff shows only what changed.
How to use the diff checker
- Paste both versions: the original text on the left and the changed text on the right.
- Choose a view: side by side for reviewing, or unified for a compact, Git-style list.
- Set options: hide unchanged lines, or ignore whitespace and letter case.
- Click Compare: review the highlighted changes, then copy or download the diff.
Views and options
| Option | Best for | What you get |
|---|---|---|
| Side by side | Reviewing edits on a wide screen | Original and changed text in two aligned columns |
| Unified | Phones and Git-style review | One column with − for removed and + for added lines |
| Changes only | Long files with a few edits | Each change with 3 lines of context |
| Ignore whitespace | Re-indented or reformatted code | Changes in spaces and tabs are skipped |
| Ignore case | SQL, HTML, and plain text | Uppercase and lowercase count as the same |
Common uses for a diff checker
- Code review: check what a teammate or a tool changed before you merge it.
- Config changes: compare a working config file with a broken one to find the setting that changed.
- API responses: format two JSON responses, then compare them to spot new or missing fields.
- Documents and contracts: see which sentences were edited between two drafts.
- Data files: compare two CSV exports to find added or removed rows.
Comparing JSON? Format both sides with the same indentation first, so the diff shows real changes instead of spacing.
Worked examples
Find a changed setting
Paste the old and new versions of a config file and choose Changes only. Every edited line appears with a few lines around it, and the exact value that changed, such as timeout: 30 to timeout: 60, is highlighted inside the line.
Review re-indented code
When code was moved into a new block, every line looks different because of the extra indentation. Turn on Ignore whitespace and only the lines with real changes remain.
Share a patch
After comparing, click Download .diff. The file uses the unified format, so you can attach it to a ticket or apply it with git apply or patch.
Frequently asked questions
What is a diff checker?
A diff checker compares two versions of a text and shows exactly which lines were added, removed, or changed, so you can review edits without reading both versions in full.
Is this diff checker free?
Yes. You can compare texts, copy the diff, and download it without creating an account.
Is my text uploaded or stored?
No. The comparison runs entirely in your browser. Nothing you paste is sent to a server or saved, and clearing the form removes it from the screen.
What is the difference between side by side and unified view?
Side by side shows the original on the left and the changed text on the right. Unified shows both in one column, with removed lines marked with a minus sign and added lines with a plus sign, like Git.
Can I ignore whitespace or letter case?
Yes. Turn on Ignore whitespace to skip changes in spaces, tabs, and indentation, and Ignore case to treat uppercase and lowercase letters as the same.
Can I use the result with Git or patch?
Yes. Copy or download the unified diff. It uses the standard format with three lines of context, which tools like git apply and patch can read. With Ignore whitespace or Ignore case turned on, the diff may not apply cleanly.