Git Diff Viewer
Paste two versions of a text and see a clear, color-coded line-by-line comparison.
Paste the original text on one side and the modified version on the other - this tool computes a line-by-line diff and highlights what changed.
This performs a plain text diff - for the exact diff of a real commit, use `git diff` in your repository and paste the output here to review it more readably.
What Is a Diff?
A diff is a line-by-line comparison between two versions of the same text, showing which lines were added, which were removed, and which stayed the same - the same concept git diff uses to show what changed in a commit.
Why Use This Tool?
Useful for reviewing changes to any text - not just code - before committing, comparing two drafts of a document, or making sense of a diff someone pasted to you outside of Git.
How to Use It
- Paste the original text into the left box.
- Paste the modified text into the right box.
- Click Compare - added lines are highlighted green, removed lines red, unchanged lines are shown plain.
Understanding the Result
Lines are matched by their content and position using a standard line-diffing approach - a line that moved without changing may show as a removal-plus-addition pair rather than a "move", which matches how most diff tools (including Git) behave by default.