Skip to main content
>_devtools

Patch to JSON Parser and Diff Statistics

Parse a unified diff or git patch into JSON with files, hunks, and lines, plus additions, deletions, and per-extension statistics.

Converts a unified diff or Git patch into JSON containing files, hunks, lines, and statistics. Paste a patch or open a file to review the structured result.

Example

Input
--- a/a.txt
+++ b/a.txt
+hello

Output
files: 1
additions: 1
deletions: 0

Limits and behavior

  • Input is limited to 5 MiB.
  • Binary payloads are summarized; patches are not applied.