Key Features
- Dual Diff Engines: Seamlessly switch between the Monaco Diff Editor (VS Code engine) and a GitHub-style token-level diff viewer.
- Split & Unified Views: Inspect changes side-by-side or in a traditional unified patch view.
- Intra-Line Granularity: Pinpoint changes down to specific words or individual characters.
- 100% Client-Side Privacy: All computations happen directly in your browser. Zero code is uploaded to any remote server.
- Git Patch Generation: Copy or download standard
.patchfiles ready forgit apply. - Multi-Language Syntax Highlighting: Supports JavaScript, TypeScript, Python, JSON, Go, Rust, Java, C++, SQL, YAML, and more.
How to Compare Code Online
- Paste or upload your original code into the left editor.
- Paste or upload your modified code into the right editor.
- Review the automatically highlighted additions, deletions, and modifications.
- Toggle whitespace, case sensitivity, or granularity to refine the comparison.
- Export or copy the unified Git patch.
Frequently Asked Questions (FAQ)
Is my code uploaded to any external server?
No. All diffing operations occur 100% client-side in your web browser. Your confidential code and documents never leave your machine.
Can I generate patches compatible with Git CLI?
Yes. The export patch button produces a standard unified diff that can be applied in your terminal using git apply <file.patch>.