Code Diff Checker
Compare two versions of a code snippet, configuration, or file. Review line and inline changes, then copy or download a unified diff without uploading your code.
Very large changes reached the diff safety limit; the unmatched middle is shown as removals and additions.
Enter text in both boxes to compare.
Notes
Compare source code and configuration side by side or in a unified patch view. Ignore extra whitespace can make indentation-only shifts easier to review; the original formatting is preserved in the display and export.
Copy or download a .diff file generated locally in your browser. Pasted code and files are never uploaded or saved.
Frequently asked questions
Can I compare code with different indentation?
Yes. Turn on Ignore extra whitespace to treat indentation and repeated whitespace as equal during comparison while keeping the entered code unchanged in the result.
How do I export code changes?
Choose Copy Unified Diff or Download .diff. The patch is created in your browser and contains the compared text, so handle the downloaded file as you would any source code.