Follow Us

Diff Checker

Compare two texts or code files and see exactly what changed — every added, removed and edited word, lined up side by side. Free, fast and 100% private.

Runs in your browser Word & character highlights Real-time diff Share & export
Drop file here
0 lines
Drop file here
0 lines

or press Ctrl + Enter

How to Use the Diff Checker

Paste two versions and see exactly what changed — added lines in green, removed lines in red, with the changed words highlighted.

1

Add both versions

Paste or type the original text on the left and the changed text on the right — or open or drop a file on each side.

2

Find the difference

Click Find difference (or press Ctrl + Enter). Changed lines line up side by side, with the exact words that changed highlighted.

3

Jump between changes and merge

Use the arrows or press N and P to go from change to change. Click → or ← on a change to copy it to the other side.

4

Share or export

Copy a share link, or export an HTML report, a PDF or a unified diff (.patch) for Git.

Views

Split & unified

Highlights

Word & character

Real-time

Diff as you type

Focus

Hide unchanged

Ignore

Spaces, case, blanks

Export

HTML · PDF · .patch

Privacy

Runs in your browser

Price

100% free

Diff Checker Features

A fast, accurate text and code compare tool — with the polish of a desktop app.

Side-by-side or unified

See the original and changed text lined up side by side, or as one column like git diff. Edited lines sit next to each other, with empty space where lines were added or removed.

Exact word highlights

Changed words are highlighted inside each line. Choose Smart, Word or Character precision — or Line only for a quick overview.

Real-time diff

Turn on real-time mode and the result updates as you type or paste, with no button to press.

Hide unchanged lines

Collapse long runs of identical lines and keep just a few lines of context around each change. Click to show them again.

Jump between changes

Step through every change with the arrows or the N and P keys, and see where all changes are on the overview bar.

Ignore what doesn’t matter

Ignore whitespace, letter case or blank lines, so only real changes are shown.

Clean up both sides

Format JSON with sorted keys, sort lines, trim spaces, remove blank or duplicate lines, or lowercase everything — on both sides at once.

Share and export

Share a link with both texts, or export an HTML report, a PDF, or a standard unified diff (.patch) that works with Git.

Merge changes

Copy any change from one side to the other with the arrows between the two columns — or with Copy to right / Copy to left — and undo with one click. Copy the merged result when you’re done.

Reading the Diff

What the colours and symbols mean.

You seeMeaning
Red line (−)Removed from the original
Green line (+)Added in the changed version
Darker highlight inside a lineThe exact words or characters that changed
Striped empty spaceA line exists only on the other side
Grey “Show … unchanged lines” barIdentical lines that are hidden — click to show them
Coloured marks on the right edgeWhere every change is in the file — click one to jump to it

Diff Precision Options

How finely the changes inside a line are marked.

PrecisionWhat it highlightsBest for
SmartChanged words, joining tiny gaps between themMost text and code
WordEvery changed word exactlyDocuments and prose
CharacterEvery changed letter, digit or symbolIDs, hashes, numbers, typos
Line onlyWhole changed lines, no word marksVery long lines or a quick overview

What Can You Use It For?

Popular ways people use the diff checker.

Code reviews

See what changed between two versions of a file.

Contracts & documents

Spot every edit in an agreement or policy.

Config files

Find the one setting that changed in .env, YAML or JSON.

Writing

Compare drafts of essays, articles or translations.

Data & SQL

Compare query results, CSV exports or database dumps.

Debugging

Compare logs or API responses from working and broken runs.

Students

Check what a teacher or editor changed in your work.

Translations

Find missing or changed lines between two language files.

Tips for the Best Result

  • Format both sides the same way. Use Format JSON, or a beautifier, so layout changes don’t hide real ones.
  • Ignore whitespace for code. Turn it on when indentation changed but the code did not.
  • Sort lines for lists. Comparing lists where order doesn’t matter? Sort both sides first.
  • Hide unchanged lines in big files. Then use N and P to jump from change to change.
  • Use Character precision for IDs. It shows the one digit that differs in a long number or hash.
  • Mind what you share. A share link contains both texts — don’t share links with private data.

Private by Design

The comparison runs entirely in your browser — your text and files are never sent to Toolszu or anyone else, and nothing is stored on our servers.

Share links keep both texts inside the link itself, after the #. Browsers never send that part to the server, so only the people you give the link to can read it.

Frequently Asked Questions

Quick answers about comparing text and code.

Paste or open the original on the left and the changed version on the right, then click Find difference or press Ctrl + Enter. Removed lines are shown in red, added lines in green, and the changed words are highlighted.

No. The comparison runs entirely in your browser, so your text and files never leave your device. A share link stores the text inside the link itself.

Yes. Click Open file above each box, drop a file on it, or drop two files at once to fill both sides. Any text or code file up to 20 MB works — .txt, .js, .php, .py, .json, .csv, .xml, .md, .sql and more.

Split shows the two versions side by side, with matching lines lined up. Unified shows one column with removed (−) and added (+) lines, like git diff.

With real-time diff on, the result updates automatically a moment after you type or paste, so you don’t need to click Find difference again.

It treats lines that differ only in spaces, tabs or indentation as the same, so you see the real changes. Ignore case and Ignore blank lines work the same way for letter case and empty lines.

It collapses long runs of identical lines and keeps three lines of context around each change. Click the grey bar to show the hidden lines.

Use the up and down arrows in the bar above the result, press N for next and P for previous, or click a mark on the overview bar on the right.

Yes. In split view, click → on a change to copy it from the original to the changed text, or ← to copy it the other way. You can also pick a change with the arrows and use Copy to right or Copy to left. Undo reverts the last merge, and Copy above each side copies the merged text.

Yes. Export an HTML report, print or save it as a PDF, or download a unified diff (.patch) that can be applied with Git or the patch command.

Yes. Click Format JSON first: both sides are formatted the same way with keys sorted, so only real data changes show up.

Yes — code in any programming language, plain text, CSV, JSON and any spoken language, including Hindi, Arabic, Chinese and emoji.

Yes — 100% free, with no sign-up and no limits.

Related Free Tools

Ready to Compare?

Paste two texts and see every change in seconds. 100% free, private and no sign-up.

Start Now

Ad Blocker Detected

Toolszu provides free access to over 1,000 tools. We rely on minimal ads to maintain our servers and keep improving the site for everyone.

Please pause or disable your ad blocker to continue using Toolszu.

or
Go ad-free — from $19/year

Already have a plan? Sign in