Tested tool guide
Tested browser tools
Checked August 16, 2026
What Git Diff Visualizer does, with a checked example
Git Diff Visualizer turns pasted unified diff text into a color-coded review of files and hunks, available as adjacent old/new columns or as one inline stream. It also summarizes added and deleted lines, so a replacement contributes to both totals. The input must already be a unified diff, such as output from `git diff`; two unmarked source files are not compared. Because patches may contain unpublished code, the pasted text is processed in the browser and is not uploaded.
Worked example
A concrete input and expected output from the current implementation.
Input
--- a/greeting.txt
+++ b/greeting.txt
@@ -1,2 +1,2 @@
Hello
-Colour
+Color
->
Expected output
Statistics: 1 addition and 1 deletion. The unchanged context is `Hello` at old line 1 and new line 1. `Colour` is removed from old line 2, and `Color` is added at new line 2. In side-by-side mode, those line-2 entries appear on the old and new sides.
The hunk header says both versions span two lines starting at line 1. The space-prefixed line is context, while the `-` and `+` lines each contribute one counted change; the path headers are not content changes.