Compare two text or code blocks with side-by-side and unified diff views, syntax highlighting, and line-level change highlighting online.
The Diff Viewer lets you instantly compare two texts, code snippets, or configuration files side-by-side or in unified format. Paste your original and modified content to see exactly which lines were added, removed, or changed — with color-coded highlighting for at-a-glance clarity. Whether you're reviewing a code change, comparing config files, or checking a document revision, the diff viewer makes it easy to spot every difference without a local tool.
QWhat diff algorithm does this tool use?
The viewer uses the Myers diff algorithm, the same algorithm used by Git, which produces minimal and human-readable diffs.
QCan I compare binary files?
The tool is designed for text-based content. Binary files such as images or compiled executables are not supported.
QDoes the tool support unified patch format output?
Yes, you can copy the result as a standard unified diff (--- / +++ / @@ format) suitable for use with patch or git apply.
QIs my content sent to a server?
No. All diffing is performed entirely in your browser. Your text never leaves your device.