Compare Two Texts Online: Side-by-Side Diff Checker

Compare Two Texts Online: Side-by-Side Diff Checker

Paste two versions and see what was added, removed or changed, highlighted by word or character, side by side or unified. Runs in your browser.

Updated November 2026

Reviewed by Rafael Duarte

Mode
Original
Modified

Paste text in both panels above to compare

Supports plain text, code, contracts, or any document

How to compare two texts online

Paste two versions, see what was added, removed or changed

1. Paste the original text

In the Original panel: two drafts of an essay, a contract clause, an email, a config file or any plain text. There's no file upload, so open the file, copy and paste.

2. Paste the updated version

In the Modified panel. The comparison updates as you type, and the badges show how many diffs, added lines and removed lines there are.

3. Step through the changes

Use Prev / Next, or Alt+↓ / Alt+↑ (these work even while typing in a panel). Click Copy or Download to take the result with you.

What this text compare tool does

Line-by-line comparison with word and character highlighting

Line comparison, word or character highlighting

The texts are always matched line by line. Mode (Line, Word or Char, Word by default) decides what gets highlighted inside a changed line: nothing extra, the words that changed, or the exact characters. That inner highlighting shows in the Split view.

Split or unified view

Split puts the two versions side by side. Unified lists removed and added lines one after another with -/+, in the style of git diff, showing changed lines whole, without word highlighting.

Whitespace and case options

Ignore Whitespace (on by default) treats runs of spaces and tabs as one and ignores leading and trailing spaces, but an extra blank line still counts as a change. Case Sensitive is off by default.

100% in your browser

The comparison runs on your device and the text isn't sent to any server, which suits private drafts, contracts and proprietary code.

Which Mode to pick

The comparison is always by line; Mode only changes the highlighting inside changed lines in Split view

Mode
What you see in a changed line
Word (default)
The words that changed, e.g. 30 days → 45 days lights up only 30 and 45. Good for prose and contracts
Char
The exact characters, e.g. color → colour lights up only the u. Good for typos and punctuation
Line
The whole line marked as changed, no inner highlight. Good for code and lists, like git diff
Any mode in Unified view
Removed line with -, then added line with +, both shown whole

When you'll reach for this

The most common scenarios among people who use this tool

Code review

Compare two versions of a function or config file before merging a pull request.

Contract comparison

Catch edits between two drafts of a contract without rereading both versions side by side yourself.

Editorial workflow

See exactly which words an editor changed, without relying on track changes.

Translation QA

Source on the left, translation on the right, to spot missing sections or drift from the original.

Common mistake? Start here

Looking for word highlights in Unified view

Word and Char highlighting only appear in Split view. In Unified, a changed line shows up whole, once as removed and once as added. Switch to Split to see exactly which words changed.

Pasting a paragraph as one long line

The texts are compared line by line, so a whole paragraph with no line breaks becomes a single changed line. Keep Mode on Word to see the edited words inside it, or break long text into lines before pasting.

Pressing Shift+Enter inside a panel

Shift+Enter copies the diff only when the cursor isn't in one of the text panels; inside a panel it just adds a new line. Click Copy instead, or click outside the panels first.

Expecting plagiarism detection

This tool only compares the two texts you provide. It doesn't search the web or academic databases.

Why use this diff checker

It matches the lines of the two versions with a longest common subsequence (LCS) table, the same problem diff solves, so a line inserted at the top doesn't make everything below it look changed. On very large inputs (over 2,000 lines in the changed section) it switches to patience-style anchors on lines that appear only once in each version, to stay fast.

It runs entirely in your browser: nothing you paste is sent to a server, so it works for private drafts, contracts and proprietary code.

For a walkthrough of when a diff helps and how to read one, see How to compare two texts with a diff checker.

Split view vs. unified view

Two ways to read the same diff

Split
Unified
Layout
side by side
one column, removed lines then added lines
Word / Char highlighting
yes, inside changed lines
no, changed lines shown whole
Best for
prose, contracts, small edits
code, pull-request-style review
Familiar to
document reviewers
anyone who reads git diff

Frequently asked questions

A diff checker compares two versions of a text and shows every difference in a color-coded view, with additions, deletions, and changes clearly marked. Use it any time you need to answer "what actually changed?" between two versions of a document, a contract, or a block of code.

References

Related Tools