URL Extractor

Pull every link out of a block of text or HTML.

  • SEO Tools
  • Free, no sign-up
  • Runs in your browser

URL Extractor tool

Used to mark links internal or external.

URLAnchor textTyperel

About the URL Extractor

Emails, documents, exported chats and web page source can contain dozens of addresses mixed into other text. This URL extractor finds them all: in plain text it picks out anything that looks like a web address, and in HTML it reads the actual anchor tags, so you also see each link's anchor text and rel attribute. The list can be deduplicated, sorted and filtered by domain, which is useful for content audits, checking outbound links and collecting references. Everything happens in your browser, so private documents stay on your device. To reduce the list to sites, use the Domain Extractor, and to remove tracking clutter, the URL Cleaner.

HTML mode is the one to reach for when auditing a page. Paste an article's source and you receive a row for each link on it, showing the anchor text, whether the link stays on a domain you name or leaves it, and whether it is marked nofollow or sponsored. Reading those rows takes moments, whereas picking through raw markup takes a long time.

Filters narrow the results to external links only, internal links only or addresses that match a pattern you type. Duplicates can be removed, totals for all, unique, internal and external links are shown, and the list can be copied as plain text or saved as a CSV file for a spreadsheet. The CSV keeps every column, which makes it easy to sort links by domain or anchor text afterwards.

How to use the URL Extractor

  1. Paste text or page sourceBoth are accepted; source code also yields anchor text and rel values.
  2. Enter your domainThis optional step lets each link be marked as internal or external.
  3. Narrow the listShow everything, only outbound links, only internal ones or only matches for a pattern.
  4. Export the resultsCopy a simple list of addresses or download a CSV with all columns.

URL Extractor features

  • Addresses found in plain text and links read from HTML
  • Anchor text, rel and target captured for each HTML link
  • Internal or external status judged against your domain
  • Filters for outbound, internal or pattern matches
  • Optional removal of duplicates
  • Totals for all, unique, internal and external links
  • Plain list copy or CSV download

Common uses

  • Reviewing the outbound links in an article
  • Gathering the sources cited in a document
  • Listing every nofollow link on a page
  • Collecting addresses from an email thread or chat export
  • Confirming that internal links lead where you intend

Extracting URLs in practice: auditing a newsletter, collecting links from chat exports, finding insecure resources and leaked staging addresses

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

Pulling every address out of a block of text or HTML is the first step of many audits: checking a newsletter before it goes out, collecting resources shared in a group chat, finding insecure images on a secure page or catching links to a test server. This guide audits a newsletter's links and covers chat exports, mixed content, staging addresses, image sources and what to do with the extracted list.

A worked example: auditing a newsletter

Before sending an Eid sale newsletter, a marketer pastes its HTML and extracts all 18 links. Scanning the list shows that every product link carries the campaign tag eid-sale-2026, except two copied from an older email that still say ramadan-2026, and one link points to a staging address. Fixing these three before sending means the campaign's results in analytics are complete and no customer lands on an unfinished test page.

Links from chat exports

Study groups and work teams share many useful links in chats. Exporting a WhatsApp chat as a text file and extracting the URLs collects every shared article, document and video in one list, which can then be deduplicated and turned into a tidy resource list.

Finding insecure resources

A secure page that loads images, scripts or stylesheets over plain http produces mixed content warnings, and browsers may block those resources. Extracting all URLs from the page source and filtering for addresses starting with http:// finds them quickly. Updating each to https, or hosting the files yourself, removes the warnings.

Leaked test addresses

Content copied between test and live sites sometimes keeps links to localhost, staging subdomains or internal addresses. Extracting URLs from important pages and searching for such patterns catches these before visitors or search engines find broken or private links.

Image sources

In HTML mode, image addresses are extracted too. This shows which images are loaded from other domains, such as images hotlinked from another site, which can disappear at any time. Hosting important images yourself keeps pages complete.

Next steps for the list

Extracted lists often contain duplicates and tracking parameters. Removing duplicates, cleaning tracking tags and sorting by domain turns a messy list into a clear inventory, ready for checking broken links or planning redirects during a migration.

Respect other sites

This tool works on text and HTML you paste in, which suits auditing your own content and materials you are permitted to use. Collecting large numbers of links or content from other people's sites automatically may break their terms of service, so check before reusing what you extract.

Documents and emails

Links can also be extracted from text copied out of PDFs, Word documents and emails. When compiling references for a report or checking that every link in a document still works, extracting them first saves hunting through pages by eye.

Common mistakes

  • Sending newsletters without checking every link's tags.
  • Ignoring http resources on secure pages.
  • Leaving links to staging or local addresses in live content.
  • Working with extracted lists without removing duplicates.

Related tools

To remove repeated addresses, use Duplicate URL Remover. To strip tracking parameters, try URL Cleaner, and to group links by website, Domain Extractor.

Extracting from sitemaps

Pasting a sitemap's XML into the extractor produces a plain list of every address it contains. That list is the starting point for content audits, checking that each listed page actually exists and comparing the sitemap with the pages that receive search traffic.

Comparing two versions of a page

Before and after a redesign, extract the links from the old and new versions of key pages and compare the lists. Internal links that quietly disappeared in the redesign can weaken the pages they pointed to, and spotting them early allows them to be restored.

Checking affiliate links

Bloggers with many affiliate links can extract all links from a post and filter for the affiliate network's domains, then check in the HTML that each carries rel="sponsored". It is a quick way to keep older posts compliant after guidance changes.

Signatures and footers

Text copied from emails and web pages includes links from signatures, footers and navigation. After extracting, filter these out so the list contains only the links you actually want to review, such as those in the body of an article or newsletter.

Spreadsheet cells

When a spreadsheet column mixes addresses with notes and other text, copying the whole column into the extractor pulls out just the links. This saves cleaning cells one by one before checking or importing the addresses elsewhere.

Saving the results

Save each extracted list with a note of its source and date, such as newsletter links for the Eid campaign. When questions arise later about where a link appeared or which version was sent, the saved list answers them without searching through old drafts.

Checking redirects

Some extracted links may lead to pages that now redirect elsewhere. Checking them and updating each link to its final address removes an unnecessary step for visitors and keeps internal links pointing directly at the pages you want search engines to see.

Privacy

Extraction runs in your browser. The text and HTML you paste are not uploaded or stored.

Frequently asked questions

How do text mode and HTML mode differ?

Text mode picks out anything shaped like a web address wherever it appears, even inside ordinary sentences. HTML mode reads the actual link elements in the markup, so it can also report each link's anchor text, rel value and target.

What happens to relative links such as /about?

In HTML mode they are completed using the domain you enter, so they appear as full addresses and are correctly counted as internal. If you leave the domain blank, they are listed exactly as written.

Can it download a page's HTML for me?

No. Browsers stop a web page from reading another site's content, so the tool cannot fetch it. Open the page yourself, copy its source through view-source or the developer tools, and paste it here.

Does it catch addresses that start with www?

Yes. Besides full links starting with http, text mode picks up anything that begins with www, which accounts for most links people type into ordinary prose. Bare names such as example.com are too easily mistaken for normal words, so they are not matched.

How do I keep only links to a single domain?

Type that domain into the pattern filter. Every address that does not contain it is dropped, leaving just the links pointing to the site you are interested in.

Is the HTML I paste stored anywhere?

No. All parsing runs in your browser, which matters when the page you are auditing is still unpublished or belongs to a client who expects confidentiality.