Git Diff Parser
Paste a unified git diff (the output of git diff or git show) and get a structured breakdown: list of changed files, additions and deletions per file, hunk-by-hunk analysis with line numbers, and overall stats. The tool can also export the parsed diff as structured JSON for programmatic processing or reporting.

What it does
- ▸Parses unified git diff format (git diff, git show, git log -p)
- ▸Lists all changed files with their status (added, modified, deleted, renamed)
- ▸Counts additions and deletions per file and overall
- ▸Breaks down each hunk with old and new line number ranges
- ▸Exports the parsed diff as structured JSON
- ▸Handles binary file changes and mode changes
Use cases
- ▸Reviewing a git diff to understand what changed in a PR
- ▸Extracting change statistics for a release notes or changelog
- ▸Processing a diff programmatically by exporting to JSON
- ▸Understanding the scope of changes before a code review
How it works
Paste your git diff output into the input pane
The tool parses the unified diff format, identifying files, hunks, and changes
A structured breakdown is displayed with file list, stats, and hunk details
Export to JSON if you need the data in a structured format
Frequently asked questions
1What diff formats does it support?
The unified diff format used by git (git diff, git show, git log -p, git format-patch). This is the standard format with @@ hunk headers, + and - line prefixes, and diff --git file headers. Other diff formats (context diff, side-by-side) are not supported.
2Can it parse merge commit diffs?
Yes. Merge commit diffs (which show changes from each parent) are parsed. Each parent's diff is listed separately, so you can see what each side of the merge contributed.
3Does it show the actual changed lines?
Yes. Each hunk shows the old and new line numbers, followed by the changed lines with + (added) and - (removed) prefixes. Context lines (unchanged lines around the changes) are also shown for reference.
Related tools
Use Git Diff Parser offline in Devinity
All 95 tools run locally on your Mac. No internet required, no data sent to servers.
Download Devinity →


