Diff Viewer

Compare two texts and see the differences

Original
Modified

Frequently Asked Questions

What is a diff?

A diff (short for difference) shows the changes between two versions of text. It highlights what was added, removed, or modified. Diffs are essential for code review, document comparison, and version control systems like Git.

How do I read a diff output?

In this tool: green highlights show added content, red highlights show removed content, and lines with both colors indicate changed content. Unchanged lines have no highlighting. The line numbers help you track positions.

What can I compare with this diff tool?

You can compare any text: code files, JSON/XML data, configuration files, documentation, or plain text. Paste the original text on the left and the modified version on the right to see all differences.

Is this diff tool secure?

Yes, this tool runs entirely in your browser. No data is sent to any server. Your compared texts stay on your device, making it safe for comparing sensitive code or configuration files.