URL extractor

Extract all links from text or HTML source code. Keep only domains, strip tracking parameters, filter by domain and remove duplicates.

Your text is processed in your browser and never sent to our server.

0 characters · 0 words · 0 lines

How to extract links from text

This bulk URL extractor pulls every web address out of plain text, e-mails, chat exports, Markdown or the HTML source of a page – including the values of href and src attributes.

  1. Paste your text or HTML into the left box (or open / drop a file).
  2. All links appear on the right, one per line.
  3. Use the options to keep only domains, clean tracking parameters or filter by a domain.
  4. Copy or download the list.
  • Unique only – each URL is listed once (on by default).
  • Only domains – outputs the host name (e.g. docs.example.com) instead of the full URL; handy for a list of linked websites.
  • Remove query strings – cuts everything after ? or #, so utm_ tracking parameters disappear and duplicates merge.
  • Find www. links – also catches addresses like www.example.org/pricing written without https://.
  • Sort A–Z – sorts the result alphabetically.
  • Domain contains – keeps only links whose domain contains the text, e.g. example.com to list internal links.

Example

Input:

Docs: https://docs.example.com/start?utm_source=mail.
Wiki (https://en.wikipedia.org/wiki/Mercury_(planet)).
<a href="https://shop.example.com/?a=1&amp;b=2">Shop</a>

Result:

https://docs.example.com/start?utm_source=mail
https://en.wikipedia.org/wiki/Mercury_(planet)
https://shop.example.com/?a=1&b=2

The final dot and the closing bracket of the sentence are not part of the link, while the brackets that belong to the Wikipedia address are kept. The HTML entity &amp; is turned back into &.

Frequently asked questions

How do I extract all links from a web page?

Open the page, press Ctrl+U (or right-click → View page source), select all, copy and paste it here. Absolute links from href and src are extracted; relative links such as /about are skipped because they have no domain.

How do I extract URLs from text in Excel or Google Sheets?

In Google Sheets, =REGEXEXTRACT(A1, "https?://[^\s]+") returns the first URL in a cell (including any trailing dot). Excel can show the address behind a hyperlink only with a small VBA function. For many cells it is faster to copy the column here and paste the cleaned list back.

Why is the dot at the end of my link missing?

A dot, comma, question mark or unmatched closing bracket at the end of a URL is almost always punctuation of the sentence, so the tool removes it. Brackets that are opened inside the URL, as in Wikipedia links, are kept.

Can I get a list of unique domains only?

Yes, check Only domains. Subdomains are kept as they are (blog.example.com and example.com are two entries). If you also need e-mail addresses from the same text, use the email extractor; for server addresses try the IP address extractor.

Is my text uploaded anywhere?

No. Links are extracted locally in your browser. Nothing you paste is sent to our server or stored.