How to use the Code Compare
- Paste or drop the original and modified files.
- Choose the language (detected from the file extension when you upload).
- Press Compare and switch views as needed.
Features
- Syntax highlighting for C#, JavaScript, TypeScript, HTML, CSS, SQL, Python, Java, PHP, XML, YAML, JSON and plain text
- Side-by-side, inline and unified (git-style) views
- Ignore whitespace (useful after re-indentation) and ignore case
- Line numbers with + / − / ~ markers that do not rely on colour alone
- Download a .diff/.patch file
Supported input
Source files up to 20 MB each.
Limitations
- Code is only displayed, never executed.
- Syntax highlighting is switched off above 8,000 lines to keep the page responsive.
Privacy
Everything this tool does happens in your browser. What you paste or open is never uploaded, stored, logged or used for advertising. Closing the tab discards it. Read the privacy policy.
Frequently asked questions
01Is my code uploaded?
No. Both files are read and compared inside your browser and nothing is transmitted, so it is safe for proprietary code.
02Can I apply the diff as a patch?
The unified view uses the standard format, so the downloaded file can usually be applied with git apply or patch, if file names match.