What is a Text Difference Checker?
A text difference checker, also called a text comparator or text diff tool, compares two versions of a text and highlights every difference between them. Instead of reading both versions line by line, you see straight away what was removed, what was added and which words changed.
Use it to compare two texts, paragraphs, text files, documents or code. Check text difference by word, character or line, view the result side by side or inline, and ignore spaces or capital letters when they don't matter. This online text comparison tool is free, needs no sign-up and runs entirely in your browser, so your text is never uploaded.
Compare text side by side
See the original and the changed text next to each other with line numbers, or switch to an inline view that lists removed and added lines one under the other.
Word, character and line compare
Highlight whole changed words, single changed characters such as a typo, or only the lines that differ.
Ignore spaces and capital letters
Hide differences that don't matter, such as extra spaces, tabs, indentation or upper and lower case, so only real edits stand out.
Show only the differences
Collapse unchanged lines and keep a few lines of context around each change, so long documents are quick to review.
Change summary and similarity score
See how many lines were removed, added and changed, and how similar the two texts are as a percentage. Jump between changes with the arrow buttons or Alt + Up and Alt + Down.
Compare two text files
Open .txt, .docx, text-based .pdf and code files, or drop a file onto either box. Files are read on your device.
Live text diff online
The result updates as you type or paste. Turn it off for very long texts and compare with the button or Ctrl + Enter.
Copy and download the diff
Copy the differences as a unified diff, download a colour report to print or share, or save a .diff patch file.
Free and private
Use the text comparison tool as often as you like with no sign-up. Everything runs in your browser and your text is never uploaded.
Compare Text by Word, Character or Line
The Compare by setting decides how closely the text comparator looks at each change. Pick the mode that fits your text:
| Mode | What it highlights | Best for | Example |
|---|---|---|---|
| Words | Each changed word, with neighbouring changed words joined into one block | Essays, articles, letters and most everyday text | "one hour" becomes "90 minutes" |
| Characters | Each changed letter, digit or symbol | Typos, codes, IDs, numbers and short strings | In "colour" vs "color" only the "u" is marked |
| Lines | Whole lines that differ, without detail inside the line | Lists, code, CSV rows and settings files | An edited line shows as one removed and one added line |
Start with the words compare mode. Switch to characters when you are hunting for a single typo, and use line compare when every line is its own item, such as a list or a block of code.
Compare Two Text Files and Documents
You don't have to copy and paste. Click the upload icon above either box, or drag a file onto it, to compare two text files directly. The tool reads:
- Text files: .txt, .md, .log, .csv and other plain-text files.
- Code and data files: scripts, JSON, XML, HTML, CSS, YAML and configuration files.
- Word documents: .docx files, so you can compare text documents such as contracts, reports and essays.
- PDFs: text-based .pdf files. Scanned PDFs contain images rather than text, so they can't be compared.
Only the text is compared. Fonts, colours, images and page layout are ignored, which makes it easy to see wording changes between two versions of a document.
Compare Paragraphs, Sentences and Strings
The tool is just as useful for short pieces of text. Compare paragraphs from two drafts to see exactly how an editor rewrote them, check two sentences that look almost identical, or compare two strings online to find a missing character in a password rule, product code, URL or API key.
For short text, the Characters mode works best because it pinpoints the exact letter, digit or symbol that differs. Switch on Ignore case if capital letters should count as the same.
Compare Code Side by Side
Developers can use it as a quick code compare tool. Paste two versions of a function, script or configuration file and choose Lines or Words mode. The side-by-side code comparison shows line numbers for both versions, Only show changes hides untouched code, and the .diff download gives you a standard patch file.
The tool compares code as plain text, so it works with any programming language. It does not add syntax colouring.
Is My Text Private?
Yes. The comparison runs entirely in your browser. Your text, and any file you open, stays on your device and is never sent to a server, so you can compare confidential documents safely. The tool only remembers your settings, such as the comparison mode and view, in your browser.
Need more detail about either version? Count words with the Word Counter, check length limits with the Character Count tool, or fix capitalisation first with the Case Converter.
How to Check the Difference Between Two Texts
Compare two texts online in five quick steps.
Paste or type the original text in the left box, or open a file.
Paste the changed text in the right box.
Choose how to compare: by words, characters or lines. Tick Ignore case or Ignore whitespace if those differences don't matter.
Click Find differences or press Ctrl + Enter. With Live compare on, the result appears as you type.
Review the highlighted changes, jump between them with the arrows, then copy or download the result.
Frequently Asked Questions
Is this text difference checker free?
Yes. It is completely free, with no sign-up, no watermark and no limit on how many times you compare text.
How do I check if two texts are the same?
Paste one text in each box and click Find differences. If they match, the tool shows "The two texts are identical" and a similarity of 100%. Tick Ignore case and Ignore whitespace if capital letters and spacing shouldn't count.
Can I compare two text files?
Yes. Open a file in each box with the upload icon, or drop the files onto the boxes. The tool reads plain-text, code, .docx and text-based .pdf files.
Can I compare large text files online?
Yes. There is no fixed size limit, and texts with thousands of lines usually compare in under a second. Very long texts are compared when you click Find differences rather than live as you type, and speed depends on your device.
What do the red and green colours mean?
Red marks text that was removed from the original. Green marks text that was added in the changed version. On an edited line, the whole line is tinted and the exact changed words or characters are highlighted more strongly.
What does the similarity score mean?
It shows how much of the text the two versions have in common, as a percentage. 100% means the texts are identical. It is a quick way to see how much a document changed between two versions.
Is my text uploaded or saved?
No. The comparison runs in your browser, and your text and files never leave your device. Only your settings are remembered in your browser.
Is this the same as a plagiarism checker?
No. A text difference checker shows the exact differences between two texts that you provide. A plagiarism checker searches other sources for similar text.