Compare Two Texts

Paste the original and the changed text to instantly highlight what was added, removed or changed – line by line, word by word, or character by character.

Compare by:

How to compare two texts

  1. 1

    Paste both versions

    Put the original text on the left and the changed text on the right. Any plain text works: documents, code, contracts, configuration files or lists.

  2. 2

    Choose how to compare

    Lines is best for code and lists, Words for documents and articles, and Characters for short strings such as IDs, URLs or passwords.

  3. 3

    Set the options

    Ignore case treats "Hello" and "hello" as equal. Ignore whitespace skips differences in spaces – for lines, leading and trailing spaces are ignored.

  4. 4

    Click Compare text

    Added text is highlighted in green and removed text in red. In Lines mode, each row shows its line number in the original and the changed text.

When to use a text compare tool

Document revisions

See exactly what changed between two drafts of an article, essay or report without reading both versions word by word.

Contracts and terms

Check a new version of a contract, privacy policy or terms of service for added or removed clauses.

Code and config files

Spot changed lines in source code, JSON, YAML or .env files before you deploy or commit.

Translations and copy

Compare an edited translation or marketing copy against the original to review every change.

Data exports

Find new, missing or modified rows between two CSV or text exports.

Plagiarism checks

Quickly see how much of a text was copied or reworded from another source.

Text compare FAQ

Common questions about comparing two texts