Text Compare
Paste two blocks of text and see exactly what changed. Everything runs in your browser — your text is never uploaded, so you can compare contracts, drafts and confidential files safely.
Text comparison tool
Paste text into both panes, then press Compare.
What is text comparison?
Text comparison — often called diffing — is the process of taking two versions of the same content and identifying precisely what changed between them. Instead of reading both versions line by line and hoping you spot the edits, a diff tool does the alignment for you and marks every insertion, deletion and modification.
The technique comes from software development, where the Unix diff
command has been comparing file versions since the 1970s. It has since become
useful far beyond code. Any time you have a "before" and an "after" and need to know
what moved, a comparison tool saves you from manual proofreading.
How to use this tool
- Paste your original text into the left pane, or upload a file.
- Paste the changed version into the right pane.
- Choose a comparison granularity — line for code and structured data, word for prose, character for pinpointing typos.
- Press Compare, or use
Ctrl/Cmd + Enter. - Switch between side-by-side and unified views, and use the arrow buttons to jump between changes.
If a difference in indentation or letter case is not meaningful to you, tick Ignore whitespace, Ignore case or Ignore blank lines and the comparison re-runs immediately.
Why your text never leaves your browser
It is worth being precise about this, because the obvious worry is not the real one. Plenty of online comparison tools — including Diffchecker — already run the comparison itself in your browser rather than uploading your text to a server. The leak, when there is one, usually happens around the edges instead.
When we checked Diffchecker's free web tool on 30 July 2026, pressing Find difference set the browser tab title to the first line of both texts, and that title was then sent to Google Analytics along with the pageview. No upload took place, and your content still left the machine. If the first line of your document is a party name or a case number, that is the part that travels.
This tool is built so there is nothing equivalent to find. The comparison runs as JavaScript inside your own browser — no API endpoint, no upload, no server-side processing — and when you select a file it is read locally through your browser's FileReader interface. The page title never changes, so nothing about your text can ride along inside it. Analytics, where enabled, records only that a comparison happened, which granularity you chose and a rough size band. Never the content, and never any part of it.
You do not have to take that on trust. Open your browser's developer tools, switch to the Network tab, and run a comparison. No request carrying your text will appear — the only network activity is the page itself and, if enabled, analytics and advertising scripts, none of which receive what you typed. That verifiability is the point — a privacy claim you can check yourself is worth more than one you cannot.
How this compares to Diffchecker's free plan
Diffchecker is the best-known tool in this category and its paid product is good. Its free plan, however, meters most of what you would actually use: the figures below are taken from Diffchecker's own published pricing table, checked on 30 July 2026. Where this tool is weaker, that is in the table too.
| Feature | Diffchecker Basic (free) | Text Compare Checker |
|---|---|---|
| Side-by-side view | Included | Unlimited |
| Unified view | 5 tries per month | Unlimited |
| Character-level differences | 10 tries per month | Unlimited |
| Hide whitespace changes | 5 tries per month | Unlimited |
| Custom ignore rules | 5 tries per month | Unlimited |
| Export the result | PDF, 5 tries per month | Unlimited, plain text |
| Account required | Yes, to save diffs | No account, no saving |
| Syntax highlighting | 5 tries per month | Not supported yet |
| Ads | Yes on the free plan | Yes |
| Price to lift the limits | $15 per user per month | There are no limits |
The reason for the difference is structural rather than generous. A tool that runs a comparison on its own servers pays for every comparison you make, so metering the free tier is the only way it can work. This tool does the work on your device, which costs us nothing per comparison — so there is nothing to meter, and no upgrade to sell you.
Who uses text comparison
Writers and editors compare drafts to see what a revision actually changed, which is far faster than re-reading a whole chapter. Lawyers and paralegals check contract versions against each other before signing, where a single altered number or inverted clause matters enormously. Developers compare configuration files, API responses and log output when tracking down why one environment behaves differently from another.
Students and researchers compare successive versions of their own work, or check quotations against a source. Translators align source and target text to verify nothing was dropped. Data and operations teams compare CSV exports to find which rows changed between two extracts.
Understanding the output
Content shown in red with a minus sign exists in the left text but not the right — it was removed. Content in green with a plus sign exists in the right text but not the left — it was added. Rows where both appear are modifications: the line exists in both versions but its content changed.
At word and character granularity, the highlighting narrows to the specific words or characters that differ, with unchanged text around them shown normally. Every change also carries a plus or minus marker, so the result remains readable if you cannot easily distinguish red from green.
Supported formats and limits
You can paste any text, and upload .txt, .md,
.csv, .tsv, .json, .xml,
.html, .log, .yml and common source code
files. Uploads are capped at 5 MB to keep your browser responsive; pasted text has no
limit. There is no monthly quota, no watermark and no account.
Some formats have their own guidance. If you are working with structured data, see comparing JSON files, where matching the indentation of both files first makes the result far easier to read, or comparing CSV exports, where line granularity aligns naturally with rows. For plain documents and logs there is a dedicated walkthrough of comparing two text files, including drag and drop.
Coming from another tool? There are walkthroughs for comparing two files in Notepad++, which needs a plugin before it can compare anything, and for comparing text in Excel, where the built-in formulas tell you that a cell changed but not what changed inside it.
Frequently asked questions
How do I compare two texts?
Paste your first text into the left pane and your second into the right pane, then press Compare. Differences are highlighted immediately — removed content in red on the left, added content in green on the right. You can switch between side-by-side and unified views, and change the comparison granularity between character, word and line.
Is my text uploaded to a server?
No. The entire comparison runs in your browser using JavaScript. Your text is never transmitted, logged or stored anywhere. You can verify this yourself: open your browser developer tools, switch to the Network tab, and run a comparison — no request carrying your text will appear. The only network activity is the page itself and, if enabled, analytics and advertising scripts, none of which receive what you typed.
Is there a free diff checker with no limits?
This one. There is no usage cap, no signup, no watermark and no paid tier. Most online diff tools limit how many comparisons you can run per month or require an account to save results. Because this tool does all its work in your browser, it costs nothing to run and there is no reason to meter it.
How do I compare two text files online?
To compare 2 text files, click the upload button above either pane and choose a file, or drag a file directly onto a pane. Load the original on the left and the changed version on the right, then press Compare. Supported formats include .txt, .md, .csv, .json, .xml, .html, .log and common source code files. The file is read locally by your browser using the FileReader API — it is never sent anywhere, so you can compare two text files without installing software or uploading anything.
How do I compare two text files in Notepad++?
Notepad++ has no built-in compare feature — you need the Compare plugin. Open Plugins, then Plugin Admin, tick "Compare" and click Install; Notepad++ restarts. Then open both files as tabs and choose Plugins, Compare, Compare (or press Alt+D). Differences appear side by side with added and removed lines highlighted. If you would rather not install a plugin, or you are on a machine where you cannot, you can paste or drag the same two files into the panes above and get the same side-by-side result in your browser.
What is a diff tool?
A diff tool compares two versions of text and shows exactly what changed between them. The name comes from the Unix "diff" command. Developers use them to review code changes, writers use them to compare drafts, and lawyers use them to check contract revisions. The output marks each line or character as unchanged, added or removed.
What is compare and contrast text structure?
Compare and contrast text structure is a term from reading and writing instruction, not from software. It describes how a piece of writing is organised when its purpose is to examine the similarities and differences between two subjects. Two patterns are common: block structure, which covers everything about the first subject and then everything about the second, and point-by-point structure, which alternates between them one feature at a time. Signal words such as however, similarly, whereas, unlike and on the other hand usually mark it. Note that this is a different idea from the text comparison this tool performs — the tool finds the literal differences between two versions of a document, rather than analysing how an essay is organised.
What is the difference between character, word and line comparison?
Line comparison treats each line as a single unit — useful for code and structured data where a whole line changes at once. Word comparison highlights individual words that changed within a line, which suits prose. Character comparison is the most granular and pinpoints single-character edits, useful for spotting typos or subtle changes in identifiers.
Can I compare two Word documents?
.docx files are not directly supported yet. To compare Word documents, open each one, select all the text, and paste it into the panes above. The comparison will work normally on the text content, though formatting differences will not be detected. Direct .docx support is planned.
How do I compare JSON files?
Paste or upload both JSON files and use line granularity for a structural view of what changed. For consistent results, format both files with the same indentation first — otherwise formatting differences will be reported alongside real value changes. Enabling "ignore whitespace" also helps when only indentation differs.
How do I compare text in Excel?
For a cell-by-cell check, put =EXACT(A2,B2) in a third column — it returns TRUE only when the two cells match exactly, including capitalisation. Using =A2=B2 instead ignores case. To highlight the differences visually, select both columns and use Home, Conditional Formatting, New Rule, then a formula rule such as =$A2<>$B2. Those work well for short values, but they compare cell against cell and cannot show you what changed inside a longer paragraph. For that, copy the two blocks of text into the panes above and use word or character granularity — you will see the specific words that differ rather than just a TRUE or FALSE.
How do I compare CSV files?
Upload both CSV files and use line comparison, which aligns naturally with CSV rows. Each changed row is highlighted, and switching to word or character granularity shows precisely which fields within a row differ. Large exports work fine — the comparison is limited only by your browser, not by a server quota.
What do the green and red highlights mean?
Red with a minus sign marks content present in the left text but missing from the right — a deletion. Green with a plus sign marks content present in the right text but not the left — an addition. Rows where both appear are modifications. Every change also carries a plus or minus marker, so the diff is readable without relying on colour.
Is there a limit on how much text I can compare?
There is no artificial limit. Uploaded files are capped at 5 MB to keep the browser responsive, but pasted text has no cap. Very large inputs — tens of thousands of lines — will take a moment to process because the work happens on your own device rather than on a server.
Do I need to create an account?
No. There is no account, no email capture and no login. Open the page, compare your text, close the tab. Nothing is stored, so there is nothing to sign in to.
Can I compare text on my phone?
Yes. On narrow screens the two input panes stack vertically and the comparison switches to unified view, which is far more readable than side-by-side columns on a phone. Every feature available on desktop works on mobile, including file upload.
How do I ignore whitespace when comparing?
Tick the "Ignore whitespace" option before comparing. This collapses runs of spaces and tabs and trims each line, so differences in indentation or trailing spaces are not reported. There are matching options to ignore letter case and to ignore blank lines.
Can I download the comparison result?
Yes. Use the Download button to save the result as a plain text file in unified diff format, with minus and plus prefixes marking removed and added lines. You can also copy the result to your clipboard.
How do I compare two versions of a contract?
Copy the text of both versions into the panes, or upload them if they are plain text. Word granularity is usually most useful for legal prose because it highlights the specific wording that changed rather than flagging entire paragraphs. Because the comparison happens entirely in your browser, confidential documents never leave your machine.
Is this tool really free?
Yes, and it is free because of how it is built. The comparison runs on your device, so there are no server costs that would need recovering through subscriptions. The site is supported by advertising rather than by charging users or metering usage.