env.dev

Diff Checker

Compare two text blocks side-by-side and highlight inline differences. Word- and line-level diff for code, JSON, config files, and prose — runs in your browser.

Last updated:

Original
Modified

How to Use Diff Checker

  1. 1Paste the original text in the left panel.
  2. 2Paste the modified text in the right panel.
  3. 3Click "Compare" to see the diff.
  4. 4Click "Download .patch" to save as a unified diff file.
  5. 5Use the provided commands to apply or revert the patch.

Frequently Asked Questions

What format is the .patch file?

It uses the standard unified diff format, compatible with git apply and the patch command.

How do I apply the patch?

Save the .patch file and run "git apply diff.patch" in your repository, or "patch -p1 < diff.patch" for non-git projects.

How do I revert a patch?

Run "git apply -R diff.patch" or "patch -R -p1 < diff.patch" to reverse the changes.