Skip to content
Engyna

Text Compare (Diff)

Compare two texts and see every added, removed and changed word.

How to use the Text Compare (Diff)

  1. 1Paste the original on the left and the changed version on the right, or drop two files.
  2. 2Choose side by side or inline, and compare by line, word or character.
  3. 3Jump between changes and copy or download the diff.

About Text Compare (Diff)

Text Compare (Diff) finds every difference between two versions of a text: added, removed and changed lines, and inside changed lines the exact words or characters that differ. Paste the original and the changed version, or drop two text files, and the result appears side by side or inline, with counts of added and removed lines, the number of changes and a similarity percentage.

Options control what counts as a difference. Ignore whitespace treats lines that differ only in spaces or tabs as equal, ignore case disregards capitalization, and hide unchanged lines collapses identical parts to three lines of context around each change. You can switch the highlighting between lines, words and characters, jump from change to change, swap the two sides, and copy or download the result as a unified diff (.diff), the standard patch format of version control tools. Changed lines are paired with the most similar line on the other side, so edits appear next to each other instead of as unrelated deletions and additions.

Use this diff checker to compare drafts and contract versions, review edits to an article, spot changes in configuration files or logs, or check code without a version control system.

Frequently asked questions

What is a diff?

A list of the differences between two texts, usually line by line. The name comes from the Unix diff program, and version control systems such as Git use the same idea to show what changed in a file.

What is a unified diff?

A compact text format for changes: removed lines start with a minus, added lines with a plus, and each block of changes begins with a header giving the line numbers in both versions. It is the format you download here as a .diff file.

Can I compare Word or PDF files?

Copy the text out of the documents and paste it into the two fields. Dropped files are read as plain text, so .txt, .md, .csv, .json, .xml or .html files work directly, while Word and PDF files do not.

How is the similarity percentage calculated?

It is the share of characters in both texts that stayed unchanged. 100% means the texts are identical, while a low value means most of the text was rewritten.

Guides

  • Count words, characters, sentences and reading time as you type.

  • Convert text to UPPER, lower, Title, Sentence, camelCase, snake_case and more.

  • Sort, dedupe, count, filter, shuffle, trim and number lines of text.