Compare

0 added0 removed0 unchanged

Diff output

Paste text on both sides to see the diff.

Online code diff checker

A diff checker highlights what changed between two versions of code, config, or copy. Use it to review pull-request snippets, CMS template edits, .env samples (without secrets), or content revisions before you publish.

What this tool shows

  • Added lines — present only in the modified text
  • Removed lines — present only in the original
  • Unchanged lines — shared context for easier reading
  • Optional ignore whitespace and ignore case modes

How to use it

  1. Paste the original snippet on the left and the updated version on the right
  2. Watch the unified diff update live
  3. Swap sides if you started with the wrong order
  4. Toggle whitespace/case ignores when formatting noise hides real changes

Privacy

Comparison runs in your browser with JavaScript. Nothing is uploaded to our servers for this tool—ideal for local drafts and non-sensitive code samples.

Frequently asked questions

Is this a full Git diff?

It is a line-based text diff for pasted snippets, not a repository client. For whole branches, keep using Git.

Why is there a line limit?

Very large pastes are capped in the UI so the page stays responsive. Split huge files into smaller chunks when needed.

Can I diff JSON or HTML?

Yes—any plain text works. For JSON formatting first, try our JSON beautify tool.