LocalExcelTool
Get started

Text Compare

Two texts side by side, line by line. Removed lines in red, added in green.

What is Text Compare

Text Compare puts two texts side by side and diffs them line by line: removed lines highlighted red, added lines green, with line numbers so you can see exactly which line moved. Two options change what counts as identical: ignoring whitespace collapses indent and spacing differences, and ignoring case treats Letter and letter as the same line. A unified view switches to classic - / + diff markers you can paste into a review. The engine is a longest-common-subsequence over lines, so the result is the minimal meaningful change rather than a naive block replace. Both sides are capped at 3,000 lines and everything runs in your browser — the text is never uploaded.

What this tool actually does with your file

Where it runs
In your browser, on this page
Upload
None — the file never leaves your device
Offline
Works with the network disconnected

Why the diff walks lines, not characters

The comparison is a longest-common-subsequence over whole lines, which is the same class of algorithm git uses. Its useful property is minimality with meaning: when you insert one paragraph, the result shows one green block — not a cascade of half-matched lines that technically differ but read as noise. Character-level diffing would be more precise on a single edited sentence, but on real documents it produces sub-line highlights that are harder to act on than the honest answer of "these three lines changed".

That is also why very large inputs are capped at 3,000 lines per side. The dynamic-programming table grows with the product of the two line counts — 3,000 by 3,000 is nine million cells, which is where the browser's budget realistically ends. Past the cap you get an error naming the counts, not a frozen tab and not a silently truncated comparison that pretends the tail did not exist.

What the two ignore options actually change

Whitespace folding collapses runs of spaces and tabs and trims the ends, so a line that was only re-indented compares as unchanged. This is the right default for prose pasted out of mail clients or exported from spreadsheets, where indentation carries no meaning — and the wrong one for Python or YAML, where indentation is the program. Case folding treats Letter and letter as the same line; useful when comparing a log against a report that normalized capitalization, misleading when comparing constants against strings.

Both options affect only what counts as identical. When a line matches under the relaxed rules, the panes still show each side's original text untouched — the option never rewrites what you see, only whether it is colored. That separation matters: a diff that quietly normalizes what it displays makes you unable to spot the difference that actually bit you, which is the one thing a comparison tool must never do.

Side by side or unified — and when each one wins

The default view puts the two texts in aligned panes with independent line numbers, so a changed line sits at the same height on both sides and your eye does not have to jump. Removed lines leave the right pane blank and added lines leave the left blank — the blank is information, telling you which side the line belongs to without reading a legend.

The unified view is the classic minus-plus stream. It exists because sometimes the deliverable is not "what changed" but the change itself: a unified diff pastes cleanly into a code review, a commit message, or a ticket. If you find yourself copying from the side-by-side view line by line, switch to unified first — the output is the same information in the exact shape that downstream tools expect. Both views render the same underlying diff, so switching never changes the result.

How to use

  1. 1.Paste the original text on the left.
  2. 2.Paste the changed text on the right.
  3. 3.Compare — removed lines are red, added lines are green, with line numbers.

How this compares

There are three ways to do this conversion: in the browser (this page), through a server-side converter, or with a desktop app. The useful difference is not speed — it is where your file goes and how far the free tier actually reaches.

AspectThis toolUpload-based converters
Where the file is processedIn your browser, on this pageOn the vendor's servers, after an upload
Account requiredNoUsually — free tiers ask you to sign in before lifting a limit
Size you can process for freeNo size cap, no run limitA few files per hour, or a ~5–10 MB cap before a paywall
PriceFree. Pro is $9/month, and only buys larger files and AI featuresUsually a subscription — roughly $7–15/month as of November 2026
Works offlineYes, once the page has loadedNo
Time before work starts on a 20 MB fileImmediate — there is nothing to uploadDominated by the upload — about 16 s on a 10 Mbps uplink
What it cannot preserveNothing is stored, which also means a closed tab cannot be recoveredThe same — the conversion is the same maths

Server-side converters are genuinely better at some things: very large files, sharing results with a team, keeping a conversion history, and automating batches from a script. For the case in front of you — one file, one format change, right now — they mostly add an upload wait and a sign-up form.

Frequently asked questions

How is this different from Text Diff?

Text Diff outputs - / + diff markers as plain text — what you paste into a code review. Text Compare is the visual version: side-by-side panes, red and green highlighting, and line numbers, for when the question is simply "which lines changed?".

Does whitespace count as a change?

By default no. Indent and spacing differences are collapsed, so a re-indented line counts as unchanged. Turn the option off to compare strictly character by character.

What is the size limit?

3,000 lines per side. The cap exists because the diff runs in your browser and the algorithm's memory grows with the square of the line count — past the cap you get an honest error, not a frozen tab.

What this kind of conversion cannot keep

Text tools never leave the page: the string you paste is transformed in memory and written back to the result box. There is no request, no log and no retention, which also means there is no way to recover a value you closed the tab on.

More in Text