Free Common Lines Finder

Instantly find the lines that appear in both of your texts — deduplicated, ordered, counted.

Word Counter

Runs entirely in your browser — paste text and watch the results update instantly. Nothing is uploaded.

100% Client-Side — Your text stays in your browser. Nothing is uploaded.

How to use this tool

  1. 1

    Paste Text A

    The first list or document.

  2. 2

    Paste Text B

    The second list or document.

  3. 3

    Read the intersection

    Every line present in both inputs is listed once, in the order it first appears in Text A.

Key features

BehaviorRule
Two inputsSet intersection of Text A ∩ Text B
DuplicatesCollapsed — each line listed once
OrderingFirst occurrence in Text A
CountShown in the header and status

Privacy: your text never leaves your browser

Every Toolflect Text Tool is 100% client-side. The moment you type or paste text, it is analyzed by JavaScript running inside this browser tab. Your text is never sent to our servers, never stored in a database, and never shared with any third party or AI service.

  • No uploads, no accounts, no sign-up
  • No cookies or tracking of your text
  • Works offline once the page has loaded
  • Close the tab and your text is gone from memory

You can even verify it yourself: open your browser's developer tools, switch to the Network tab, and type into the tool — the only requests you will ever see are this page's own static files (HTML, CSS, JavaScript). Nothing you type is ever transmitted.

Frequently asked questions

Are duplicate lines preserved?
No — Common Lines is a set operation: each shared line is listed exactly once. Use remove-duplicate-lines to dedupe within a single text.
How is order determined?
By the first occurrence of each shared line in Text A, so the output feels natural.
Is this like remove-duplicate-lines?
No — that tool cleans duplicates inside one text. Common Lines compares two separate inputs.
Private?
Fully — both texts are processed locally in your tab.

More free ToolFlect text tools

All free ToolFlect tools