How This Git Diff Viewer Works
Paste the output of git diff, git show, or git diff HEAD~1 (or any similar command) into this tool to view git diff online, and it parses the raw text into a structured, colored breakdown, no need to squint at plus and minus signs in a terminal. As both a git diff formatter and a git show viewer online, it works the same way for a single commit's changes as it does for a working-tree diff, each file in the input becomes its own collapsible section, with the first file expanded by default so you can start reading immediately.
Reading the Colored Output
Converting git diff to HTML this way (rather than reading raw plus and minus lines in a terminal) is really what this tool does under the hood: added lines are highlighted green with a plus marker, deleted lines are highlighted red with a minus marker, and unchanged context lines around them are shown in the normal text color so the change stands out clearly against its surroundings. Each file's header also carries a status icon, a plus-file icon for newly added files, a minus-file icon for deleted files, a pencil icon for files that were only modified, and a distinct icon for renamed files, so you can scan a large multi-file colored git diff and immediately see what kind of change each file represents before reading the details.
Unified View, Not Side-by-Side
This is a unified diff viewer: old and new lines are interleaved in a single column with color and plus and minus markers distinguishing them, rather than shown in two side-by-side columns like some other diff2html alternative tools offer. A unified view keeps small and medium changes compact and easy to scan top to bottom, a two-column side-by-side layout tends to help more specifically when reviewing many changes spread across one wide file, which this tool doesn't currently offer.
Common Uses
Reviewing a git diff before committing to make sure only the intended changes are staged, reading a teammate's diff pasted into Slack, a code review comment, or a support ticket without needing to check out their branch, and quickly reading git show output for a specific commit without opening a terminal are the most common uses for this git diff viewer. Verifying what a patch file actually changes before applying it, and double-checking a generated or AI-assisted diff before accepting it, are common secondary uses.
What This Tool Doesn't Do
This tool doesn't offer a side-by-side view yet, only the unified inline layout described above, and it doesn't apply, stage, or merge the diff back into any files, it's read-only viewing and parsing. It's also worth knowing that a git diff can contain real, possibly proprietary source code, and parsing here runs through our server rather than entirely in your browser, so avoid pasting a diff containing anything genuinely confidential.