Git, Server & Deployment

Git Diff Cleaner

Paste a raw git diff to get a file-by-file summary and a cleaned diff with whitespace-only and blank-line noise hidden. Everything runs in your browser — your diff never leaves the page.

Runs in your browser v1.0.0

Noise filters

A whitespace-only change reindents or retabs a line without changing its text, like return x; becoming   return x;. Those blocks are removed from the cleaned diff and the hunk headers are recomputed to stay consistent.

Raw git diff

input

Paste the output of git diff, git show or a saved .patch file. Nothing is uploaded.

Summary & cleaned diff

live

How it works

The diff is split into file sections and hunks. Within each hunk, runs of removed and added lines are compared: when the text differs only by whitespace, or when the whole run only adds or removes blank lines, it is treated as noise and dropped. Surviving hunks get their @@ −start,count +start,count @@ headers recomputed so the cleaned output stays readable. Binary patches and rename-only changes are passed through untouched.