Loona Automation logoLoona Text Tools
Home › Text Tools › Text Compare

Text Compare - See the Differences Line by Line

In short: the Text Compare tool lines up two versions of a text and highlights exactly which lines were added, which were removed, and which stayed the same.

Two drafts of a letter, an old and new price list, a student's essay before and after editing - when two texts look almost the same, the differences are what matter. Paste both versions and see only what changed.

Private by design: everything in this tool happens 100% in your browser with JavaScript. Your text is never uploaded to a server, never stored and never seen by us - close the tab and everything is gone.

How to use the Text Compare

  1. Paste the original text on the left and the new version on the right.
  2. Click Compare Texts.
  3. Read the result: lines marked + exist only in the new text, lines marked − were removed, and unmarked lines are unchanged.

How it works

The comparison uses a longest-common-subsequence (LCS) algorithm - the same family of method behind professional code-diff tools. It finds the longest run of lines the two texts share in the same order; everything in the original outside that run is a removal, and everything new outside it is an addition. Because whole lines are compared exactly, even a one-character change marks the whole line as removed-plus-added, which is exactly what you want when proofreading documents and lists.

Worked example

Original list: 'Milk, Eggs, Bread, Butter'. New list: 'Milk, Eggs, Brown Bread, Butter, Tea'. The result shows Bread removed, Brown Bread and Tea added, the rest unchanged - a 3-second answer instead of reading both lists twice.

Frequently Asked Questions

Is the text compare tool free?

Yes - free, no sign-up, and both texts stay in your browser.

Does it compare by line or by word?

By line. Line comparison is the clearest view for documents, lists, essays and code. A changed line shows as one removal plus one addition.

How large can the texts be?

Hundreds of lines compare instantly. Extremely large texts (tens of thousands of lines) may take a few seconds on a phone.

Can I compare code with it?

Yes - it works well for spotting changed lines in code, configuration files and data lists. Indentation and spaces are compared exactly.

Is either text uploaded?

No - the comparison runs 100% on your device.

Related Text Tools

Embed this tool on your website — free

Add this tool to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the tool to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.