Diff Two Text Files Online

Spot every added and removed line between two versions.

Processed locally — nothing is uploaded

About Online Diff Checker

Comparison is line by line, so an edited line reads as one removal plus one addition rather than a character-level patch. That suits config reviews and copy revisions, where which lines changed matters more than which characters did.

Paste two versions of a file to see exactly which lines were added, removed or changed, colour-coded side by side. The comparison runs in your browser, so confidential drafts stay private.

Compare two blocks of text side by side and highlight every line that was added, removed or changed. It is the fast way to review edits to copy, configuration files, code snippets, contracts or any two versions of a document without installing a desktop diff tool.

Paste the old version on one side and the new on the other for a colour-coded breakdown of exactly what moved. A reordered block shows as a deletion plus an insertion rather than a move, which is worth knowing before reading a long diff.

Learn how this works

Frequently asked questions

Does it compare line by line or word by word?

Line by line, which is what makes the output readable for code, config and prose alike. A line that changed shows as one removal plus one addition rather than a scatter of character-level edits.

Can I compare two files rather than pasting text?

Paste the contents of each into the two panes. Because everything is compared in your browser, there is no upload step and no size limit beyond what your device can hold in memory.

Is it safe to diff confidential text?

Yes — both sides stay on your device and nothing is transmitted, so you can compare contracts, credentials or proprietary code without it leaving your machine.

Common Use Cases

  • Spotting what changed between two versions of a config file
  • Comparing a draft against an edited copy of a document
  • Checking whether two supposedly identical exports really match

More Online Diff Checker tools

Related tools