Git Diff Viewer

Paste a git diff or .patch and read it clearly: files, added and removed lines, unified or side-by-side view, word highlights – or make a patch from two texts.

Tool

Was this tool useful?

About this tool

About Git Diff Viewer

Reading a long diff in a terminal or e-mail is hard. Paste the output of git diff, a .patch file or a GitHub/GitLab .diff and see every file with its status (added, deleted, renamed, modified), +/− counts and hunks with line numbers, in a unified or side-by-side view with changed words highlighted. You can also paste two versions of a text to create a unified diff and download it as a .patch.

How it works

Unified diff hunks (@@ -old,count +new,count @@) are parsed with line numbers; changed line pairs get a word-level LCS diff. New patches use a line LCS with 3 lines of context, like git.

Example

A 2-file diff shows src/cart.js with +4 −4 lines (the tax calculation) and a new README.md with +2 lines.

How to use this tool

  1. Paste a diff or choose a .diff/.patch file (or switch to “compare two texts”).
  2. Choose unified or side-by-side view; filter by file name.
  3. Read the changes, or download the .patch you made.

Frequently asked questions

Does it show binary files?

They are listed as changed binary files, without content.

Is my code uploaded?

No – everything is shown in your browser.

Is my data uploaded?

No. Everything runs in your browser and stays on this device.

Does the Git Diff Viewer send my data to a server?

No. The Git Diff Viewer runs entirely in your browser using JavaScript, so tokens, code and data you paste stay on your device. You can even use it offline once the page has loaded.