Text Diff Checker
Text ToolsSide-by-side diff with highlights
Embed this tool on your websiteFree
- Choose how tall the frame should be.
- Press Copy code.
- Paste it into your page, blog, WordPress or Notion HTML block.
The tool runs inside your visitor's browser, nothing is uploaded, and a small "Powered by ToolCloak" line stays under it. The second line (script) is optional: it makes the frame fit the tool's height.
Similar tools you may like
History
All history →Comparing two texts line by line: how this checker works and how to get a clean result
You have two versions of something, an old and a new, and you need to know exactly what changed. Reading both side by side with your eyes is how mistakes slip through, especially in contracts, price lists, configuration files and long emails. This tool compares them and marks every line that was added, removed or left alone.
How to read the result
- Green with a + is a line that exists in the modified text but not in the original at that position.
- Red with a − is a line from the original that is not there any more.
- Grey, no sign is a line that is exactly the same in both.
- The three badges above the result show the totals: how many lines were added, removed and unchanged.
- If a line was edited, it appears as a pair: the old line in red, directly followed by the new line in green. Compare the two to see what changed inside it.
The important thing: it compares line N with line N
This checker is a line-by-line, position-based comparison. Line 1 of the original is compared with line 1 of the modified text, line 2 with line 2, and so on. It is fast, predictable and perfect for many jobs. But you need to know its one weakness.
If someone inserts a new line near the top, every line below it moves down by one. The tool then sees line 5 (old) against line 5 (new), which are now different text, and reports a long run of changes even though only a single line was added. Developers’ tools such as Git use a smarter method that detects insertions, and this one does not.
Where it works very well
- Contract or policy drafts where a clause was reworded but the paragraphs stayed in order.
- Lists with one item per line, such as email addresses, product codes or names, after both lists are sorted the same way.
- Configuration and settings files, for example two versions of a
.envor a.htaccessfile that differ in a few values. - Prices and tables pasted as text, where each row is a line and you want to see which numbers moved.
- Translations and copy edits, checking that an editor changed only what they said they changed.
- Homework and assignments, to see how far two texts really differ.
Tips for a cleaner comparison
- Make both sides use the same line breaks. Text copied from a PDF or from an email often breaks lines at random places. A paragraph in one text and the same paragraph wrapped across four lines in the other will show as different. Join or clean the lines first.
- Watch invisible spaces. A trailing space or a tab at the end of a line makes it a different line to this tool, and you will see a red and green pair that look identical. Run both texts through a whitespace cleaner first if you see this.
- Sort lists first. If the order does not matter (a list of names, a set of tags), sort both with the Line Sorter so the same items land on the same line numbers.
- Compare one section at a time for a very long document. A shift in an early section cannot disturb the rest.
- Remember it is case sensitive. “Total” and “total” are different. If case does not matter to you, convert both to lowercase first.
When you only care about what is in one list but not the other
If your real question is “which names are on list A but not on list B”, order does not matter at all, and a line-by-line comparison is the wrong tool. Use the List Comparator instead. It treats both sides as sets and shows items only in A, only in B, and in both, with no problem from different ordering.
A short worked example
Original text:
Rent: 12000Water: 300Internet: 700
Modified text:
Rent: 12500Water: 300Internet: 700Parking: 500
The result shows 2 added, 1 removed and 2 unchanged. The first line appears as a red Rent: 12000 followed by a green Rent: 12500, which is an in-place edit. The two middle lines are grey. The new Parking: 500 line appears as a green addition at the end. This is the kind of change the checker explains best.
What it does not do
Knowing these limits is what makes the result trustworthy. When you see an unexpected long block of changes, check for shifted lines or invisible spaces before assuming the document was rewritten.
- It does not highlight the changed words inside a changed line. You compare the red and green pair yourself.
- It does not detect lines that were only moved to a different place.
- It does not ignore spaces or case. Everything is compared exactly.
Privacy
Both texts are compared inside your browser. Neither text is uploaded or saved, which makes it a reasonable choice for agreements, salary details or code that you would rather not paste into an online service.
Text Diff Checker — at a glance
Paste two versions of a text and instantly see what was added, removed or changed.
How to use it — step by step
Perfect for comparing document versions, code snippets, contracts and edited articles.
Paste original
Put the old/original text in the left box.
Paste changed
Put the new/edited text in the right box.
Compare
Press compare to see differences highlighted.
Read changes
Green lines are added, red lines are removed. A summary shows total changes.
Pro tips
Small things that make the result better.
Quick facts
Frequently Asked Questions
What is Text Diff Checker?+
Compare two text blocks side by side with color-coded highlights for every addition and deletion. Shows exact line numbers and a summary count of all changes. Essential for document version tracking.
How do I use Text Diff Checker?+
Open Text Diff Checker on this page, then: 1. Paste original 2. Paste changed 3. Compare 4. Read changes. Everything runs in your browser on a phone or computer.
Is Text Diff Checker free to use?+
Yes. Text Diff Checker on Toolcloak is free, needs no signup and has no hidden limits.
What do the colors mean?+
Green means new text that was added. Red means text that was removed from the original.
Does it compare files?+
Paste the contents of your files into the two boxes. You can copy text out of almost any document.
Why does it show a change when the text looks identical?+
There may be an extra space, tab or invisible line ending difference.
Is my data safe?+
Yes. Everything runs inside your own browser. Your text, files and images are never uploaded to any server.
Also searched as: text diff · diff checker · compare text online · text compare tool · find difference between two texts · compare two files

