Skip to content
Back to all articles
Developer3 min readNovember 15, 2026

How to Extract All Links From Text, Emails or a Web Page

Pull every URL out of any text in seconds, remove tracking parameters, filter by website, get a domain list, and handle relative links in HTML.

How to Extract All Links From Text, Emails or a Web Page article
In this guide
  1. Step 1: Get the text
  2. Step 2: Extract
  3. Step 3: Clean the links
  4. Step 4: Filter by website
  5. Step 5: Get domains only
  6. Step 6: Export
  7. What about relative links in HTML?
  8. Worked example: links from a class group
  9. Tips for checking suspicious links
  10. Related tasks
  11. Privacy note

Long emails, chat exports, documents and web pages often contain dozens of links. Copying them one by one is tedious and easy to get wrong. Here is how to pull them all out in seconds with the free URL Extractor.

Step 1: Get the text

  • Email or document: select all and copy.
  • WhatsApp chat: export the chat as a .txt file (without media) and open it in the tool.
  • Web page: open the page, right-click and choose View page source, then copy everything. Or save the page and open the .html file.
  • Spreadsheet: copy the column that contains links.

Step 2: Extract

Paste the text into the URL Extractor, or open the file. Every address that starts with http:// or https:// appears in the list instantly. A full stop or bracket at the end of a sentence is not treated as part of the link.

Links without http: many people write www.example.com/contact. Turn on Include www. links to catch those too; they are listed with https:// in front.

Links shared from ads, newsletters and social media usually carry tracking parameters:

> https://example.com/sale?utm_source=newsletter&utm_medium=email&id=42

Turn on Remove tracking to strip utm_ tags, fbclid, gclid, msclkid and similar, while keeping parameters that matter, such as a product or video ID:

> https://example.com/sale?id=42

Remove duplicates is on by default, and the footer shows how many were dropped.

Step 4: Filter by website

The domain chips show which sites appear most often and how many links each has. Tap one, or type a site such as youtube.com or drive.google.com, to keep only those links. Subdomains are included, so drive.google.com counts under google.com.

Typical uses:

  • Every YouTube link from a class group chat
  • Every Google Drive file shared in an email thread
  • All links to your own site in a blog post

Step 5: Get domains only

Turn on Domains only to see a list of unique websites instead of full links. This is handy for SEO audits (which sites does this page link to?) and for checking where an email’s links really go.

Step 6: Export

Choose one per line, comma or semicolon, then copy all, or download a TXT or CSV file to open in Excel or Google Sheets.

In page source, internal links are often written without a domain, such as /about or ../contact.html. They are not full URLs, so a text extractor cannot list them. Use the HTML Link Extractor, which reads links from HTML and resolves them against the page address.

A teacher’s WhatsApp group has six months of messages with notes, videos and forms. To make one tidy list for the students:

  1. Export the chat without media and open the .txt file.
  2. Tap the youtube.com chip to keep only video links, and copy them into one message.
  3. Tap google.com to get the Drive and Forms links, and download them as a CSV.
  4. Paste the CSV into a spreadsheet and add a column for the topic of each link.

It takes a couple of minutes instead of an hour of scrolling.

  • Use Domains only on a suspicious email to see where every link really points. Look-alike domains, such as an extra letter or a different ending, are a common phishing trick.
  • Be wary of shortened links (bit.ly and similar); the real destination is hidden until opened.

Privacy note

The text you paste is processed in your browser and never uploaded, which matters for private emails and chat exports.

Try it now with the URL Extractor.

Was this article helpful?

Found this guide useful?

Share it with someone who is struggling with the same problem.

Free tool · No sign-up

URL Extractor

Extract every link from text, HTML, emails or files. Remove duplicates and tracking parameters, include www. links, filter by site, get domains only and export CSV.

Open tool

Written by

Hemant Adhikari HemantInsights

Senior Software Engineer · Developer of Toolyconvert

I’m a senior software engineer from Dehradun, India, building websites since 2014. I designed and developed Toolyconvert, from the Next.js front end and headless WordPress back end to the tools themselves, and I review every guide before it goes live.