Git Diff Viewer compares two versions of a text file directly in your browser and presents the result in a Git-style review interface. Paste an older version on the left and a newer version on the right, then compare them line by line without installing Git or sending source code to a remote service.
The viewer builds a line-aware diff and groups consecutive additions, removals and unchanged content into readable change blocks. Changed lines receive line numbers for both versions, while modified lines can also show inline word-level differences. This makes small edits such as a renamed variable, changed configuration value or updated function call much easier to locate than comparing two large textareas manually.
Advanced comparison controls let you ignore leading and trailing whitespace, ignore all whitespace, ignore line-ending differences, or ignore letter case. These options affect comparison rather than altering the original text, so the source versions remain intact. Empty lines are preserved and line numbers continue to refer to the original versions.
Use side-by-side view when you want a familiar code-review layout, inline view when you want a compact list of changes, and unified diff when you need a patch-like representation that can be copied or saved. Search filters the visible changes, while summary statistics report total lines, additions, removals, changed blocks and similarity. You can swap the two versions, load realistic sample data, clear both editors, copy the unified diff, download a .diff file, or print the comparison.
Everything is processed locally in the browser. The tool does not require Git, an account, a package installation, or an external comparison API, making it useful for quick code reviews, configuration checks, troubleshooting, documentation updates and before-and-after comparisons.