Skip to content
Owais Khan Software Reviews

Text Compare

Find every difference between two texts. Runs in your browser — your text never leaves your browser.

Compare two texts

2 lines changed, 1 line added.

1 Dear team, 1 Dear team,
2 2
3 The launch is scheduled for Monday at 9am. 3 The launch is scheduled for Tuesday at 10am.
4 Please review the draft by Friday. 4 Please review the draft by Friday.
5 Budget: $12,000 5 Budget: $12,500
6 Owner: Priya 6 Owner: Priya
7 Backup owner: Marco
7 8
8 Thanks, 9 Thanks,
9 Sam 10 Sam

What the example shows

Two versions of the same email. The launch line changed, so it is shown on both sides with only “Tuesday” and “10am” highlighted; the budget line changed by one digit; and a backup owner was added, shown in green on the right. Every other line is identical and stays unmarked.

A diff checker for text, code and documents

This diff checker works on any plain text: contract drafts, essays, CSV exports, configuration files and source code. For code, turn on “Ignore whitespace” to skip re-indentation noise, and download the unified diff to hand the change to someone else or apply it with git apply.

Compare two texts without uploading them

Most online tools send what you paste to their server to compare two texts. Here the comparison happens on your own device, so confidential drafts and private code stay private, and it works offline once the page has loaded.

Frequently asked questions

How do I compare two texts online?
Paste the original text on the left and the changed text on the right, or open a file on each side. The differences appear immediately below: removed lines in red, added lines in green, and changed lines side by side with the exact words that differ highlighted. The line at the top counts how many lines were changed, added and removed.
Is this a diff checker like the one developers use?
Yes. It uses Myers’ diff algorithm, the same one git and GNU diff use, so it finds the smallest set of added and removed lines. Download the result as a unified diff — the format of git diff and diff -u — and git apply or patch will apply it. This site’s tests check that on hundreds of random texts, GNU patch turns the original into the changed text exactly.
Can I ignore whitespace or capitalization differences?
Yes. "Ignore whitespace" treats lines as equal when they differ only in spaces, tabs or indentation — useful for re-indented code or text pasted from different editors. "Ignore case" treats "Hello" and "hello" as the same. Windows and Unix line endings are always treated as equal.
How does it show changes within a line?
When a line was edited rather than added or removed, the two versions are shown next to each other and compared again word by word, so only the words that actually changed are highlighted — "Monday at 9am" versus "Tuesday at 10am" highlights the day and the time, not the whole sentence.
Can it compare large files?
Yes. The comparison runs in your browser and is fast when the texts are mostly the same: two 20,000-line files with a handful of changes compare in a fraction of a second. Tick "Only changed lines" to hide the unchanged parts and see each change with three lines of context around it.
Is the text I paste uploaded or saved?
No. The comparison runs entirely as a small script inside this page; your text never leaves your browser, and there is no upload, no API call and no analytics here — safe for contracts, code and anything confidential. That is enforced rather than promised: this site’s test suite scans the shipped HTML for every browser API capable of sending data off the page and fails the build if it finds one.