Diff Viewer
TextView and generate unified diffs with colored added/removed line highlighting
Paste an original and a modified block of text and get a proper unified diff back, generated with a real line-based LCS algorithm rather than a naive line-by-line comparison, complete with the standard three lines of surrounding context per hunk. It's useful for comparing two versions of a config file after a deployment, or generating a diff to paste into a bug report or code review comment when you don't have both versions checked into git side by side. The output is a solid approximation of `git diff` formatting, but it's missing file-mode and index headers a real git patch includes, so applying it directly with `git apply` may need small adjustments first. This compares at the line level; it doesn't highlight word-level changes within a line.
How to use Diff Viewer
- 1.Paste an original and modified version of a file side by side to see exactly which lines were added, removed, or changed.
- 2.Generate a unified diff format output to paste into a code review comment, commit message, or bug report.
- 3.Compare two versions of a config file after a deployment to quickly spot an unintended change.
Frequently asked questions
Availability
This tool currently runs in the browser only — no REST API, SDK, or MCP equivalent yet.