← All tools

Text & code comparison

Paste two versions, compare the changes, then copy or download the result.

Compared on your device
UTF-8 text files · 2 MiB and 20,000 lines combined
0
0
Ctrl / ⌘ + Enter to compare

Add two versions, then select Compare. One side may be empty.

Comparison

Patch file names: original.txt → modified.txt.

Add two versions, then select Compare. One side may be empty.

Your text and files stay in this browser tab.

Compare safely and precisely

Choose what matters

Compare text, code, configuration files or writing revisions. Ignore options affect the comparison only; they never rewrite the source text.

Understand the export

A unified .diff describes changes from original.txt to modified.txt. Export is enabled only for exact comparisons. Modified-text export contains the complete right-hand input.

Files and line endings

UTF-8 file imports retain their original line endings until you edit that input. Typing or pasting uses the browser editor’s LF line endings. CRLF, LF and missing final newlines are shown in changed rows.

Processing runs in a separate browser worker and can be cancelled. Large comparisons show a bounded preview to keep the page responsive.