Git Diff Viewer
Compare two code snippets or view a unified git patch with intra-line highlighting.
Free & unlimited
Source
Original
Modified
Layout
Granularity
0 / 0
All processing happens in your browser. No data is sent to any server.
About this tool
- 1
Paste original code
Paste the original (before) version of your code in the left panel.
- 2
Paste modified code
Paste the updated (after) version in the right panel.
- 3
View the diff
Additions, deletions, and modifications are highlighted with color coding.
- 4
Switch view modes
Toggle between side-by-side and unified diff views for different perspectives.
- Use unified view for reviewing small changes and side-by-side for large refactors.
- Line numbers are clickable - select ranges to share or reference specific changes.
- Whitespace changes can be toggled on or off to focus on meaningful code differences.
- Paste the output of `git diff` directly for instant syntax-highlighted rendering.
- Side-by-side and unified diff view modes
- Syntax highlighting for 100+ programming languages
- Inline change highlighting within modified lines
- Ignore whitespace option for cleaner diffs
- Line-by-line navigation with keyboard shortcuts
- Review code changes before committing when you do not have a Git GUI available
- Compare two versions of a config file to find what changed
- Share a visual diff with a teammate during a code review discussion
- Debug a regression by comparing working and broken versions of a function
Yes. Paste unified diff format output and the tool will render it with proper syntax highlighting and color coding.
Over 100 languages are supported including JavaScript, Python, Java, Go, Rust, C++, HTML, CSS, SQL, and more.
Both. Paste full files for a complete diff or just the relevant code snippets you want to compare.