Advertisement

Diff Checker

Compare two texts or code files and see every added, removed and changed line - highlighted down to the character.

Last updated:

Diff Checker
Text · Code · JSON · Side by side
Paste two versions and press Find difference. Nothing is uploaded.

How to Find the Difference Between Two Texts

1
Paste the original on the left and the changed version on the right
2
Press Find difference
3
Red lines were removed, green were added; marked characters show exactly what changed

Comparison runs in your browser - safe for private code, contracts and configs.

What You Can Compare

UseExampleAlso searched as
CodeTwo versions of a function or filecode compare, compare code online
Text and documentsContract or essay draftstext compare, compare two texts, compare documents
JSON and configAPI responses, .env, YAMLjson diff, compare json online
ListsTwo email or ID listscompare two lists, find differences
SQL and logsQuery or log outputonline diff tool

How to Read the Result

ColourMeaning
Red lineRemoved from the original
Green lineAdded in the changed text
Red and green on one rowLine modified
Darker highlightThe exact characters that changed

Options Explained

Diff on the Command Line and in Git

ToolCommand
Git (unstaged changes)git diff
Git (two commits)git diff abc123 def456 -- file.js
Linux / Macdiff -u old.txt new.txt
Windowsfc old.txt new.txt
VS CodeSelect two files → right-click → Compare Selected

How the Diff Works

Diff Checker vs Other Ways to Compare

MethodGood forLimit
This online diff checkerQuick checks, any device, privateVery large files
git diffCode in a repositoryNeeds files committed or staged
Word → Review → CompareWord documents with formattingOnly .docx
Excel / Sheets formulasRow-by-row data checksSlow to set up
VS Code compareFiles on your computerDesktop only

Tips for Cleaner Comparisons

Related Tools

Frequently Asked Questions

How do I compare two texts for differences? +

Paste them in the two boxes and press Find difference. Changes are highlighted line by line and character by character.

Can I compare two code files? +

Yes. Paste each version or copy the file contents. Use Ignore whitespace if the indentation changed.

How do I compare two JSON files? +

Paste both and tick Format JSON first. Both sides are pretty-printed so only real value changes show.

Is my text uploaded anywhere? +

No. The comparison runs entirely in your browser.

What is a unified diff? +

A single column where removed lines start with - and added lines with +, the format git and patch use.

Is there a size limit? +

It handles thousands of lines per side. Extremely large files may be slow on older devices.

Can it ignore spaces and tabs? +

Yes. Tick Ignore whitespace.

Does it work on mobile? +

Yes. The boxes stack and the result scrolls sideways when lines are long.

About the creator Prajwal Karkera, creator of ToolsFlow

Built and maintained by Prajwal Karkera, a digital product specialist with 8+ years of experience in digital products. Found a problem with this tool? Let us know through the Contact page.
Read more about me →