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.

Gustavo, the stone gargoyle mascot, head and shoulders with a knowing grin
0 lines · 0 characters
0 lines · 0 characters
View
Comparison options
Added lines +0 Removed lines −0 Unchanged lines 0

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.