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.
How to compare two texts
- 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
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
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
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
Paste the original text into Original text and the new version into Changed text, then click Compare text. Additions are highlighted in green and deletions in red.
Use Lines for code, lists and structured files, Words for prose such as articles and contracts, and Characters for short strings where every letter matters.
No. The comparison runs entirely in your browser. Your text is never sent to a server or saved.
Yes. Tick Ignore case to treat uppercase and lowercase letters as equal, and Ignore whitespace to skip differences in spaces.
Yes. In Words mode the tool uses your browser's built-in word segmentation, so changes in CJK text are shown word by word instead of as long runs of characters.
This tool keeps the order of your text and shows where each change happens. To find which items are only in list A, only in list B or in both – regardless of order – use the Compare Two Lists tool.