Preferences

Privacy is important to us, so you have the option of disabling certain types of storage that may not be necessary for the basic functioning of the website. Blocking categories may impact your experience on the website. More information (Cookie Policy)

Free URL Extractor - Extract All Links from Any Website

Free URL Extractor - Extract all internal and external links from any webpage. Analyze link structure and check your URL architecture.

Tools

On this page

Learn everything to know on URL Extractor!

Created on
19/2/26
Last update:
15/9/26
Shiny metal chains laid out in rows outdoors

Summary

The free URL extractor reads the HTML source of any page and lists every unique URL it points to, split into internal and external links, with the totals, the share of each and a Copy button for each list. It also shows the page title and the final address if the page redirects. Use it to audit internal linking, prepare a migration, review outbound links or study a competitor's page in seconds.

Want to go further? Ask

A URL extractor answers a simple question: which addresses does this page link to? Links matter twice for SEO. They are how crawlers discover pages, and Google states that every page you care about should have a link from at least one other page on your site (Google, SEO link best practices). Seeing the full list is the fastest way to check that the right pages get those links.

What does the URL extractor show?

Enter a URL and the tool fetches the page, follows any redirect, and returns four blocks.

BlockWhat you seeWhat it tells you
TotalsTotal URLs, internal links, external linksThe size of the page's link set
Composition barThe internal share in blue, the external share in orangeWhether the page keeps visitors on your site or sends them away
Tabbed listEvery unique URL, numbered, with a Copy all button for the open tabThe raw material for your audit, one URL per line
InformationThe page title, and the final URL when the address redirectsThat you analyzed the page you meant to

The free version runs 3 extractions per day, protected by an anti-bot check.

It reads every href attribute in the HTML returned by the server, then applies five rules.

  1. Relative links are resolved into full URLs, using the final address of the page.
  2. Non-page links are skipped: mailto:, tel:, javascript:, data: and in-page anchors that start with #.
  3. Duplicates are removed: a URL linked from the menu, the body and the footer is listed once.
  4. Internal means same host: a link is internal when its hostname matches the page's, with or without www. A subdomain such as blog.example.com counts as external.
  5. Every href counts, including <link> tags in the head: stylesheets, canonical, hreflang alternates or a favicon. That is why a CDN or a font host often appears in the external list.

The tool does not run JavaScript. It sees the HTML that crawlers receive first, before rendering. Google renders JavaScript pages in a second phase (Google, JavaScript SEO basics), but a link that exists only after scripts run is discovered later, and some crawlers never see it. If an important link is missing from the list, it is probably injected by JavaScript.

Blue fiber optic cables plugged into a network switch

Popular sites link more, mostly because of larger menus. The HTTP Archive measured the median number of links per page on desktop in 2024 (Web Almanac 2024, SEO chapter).

Site group (by popularity)Median internal linksMedian external links
Top 1,000 sites12916
Top 10,000 sites12214
Top 100,000 sites8610
Top 1 million sites718
Top 10 million sites527
All sites416

Use these numbers as a frame, not a target. The almanac counts clickable links, while the extractor also lists head resources, so your totals will run slightly higher. What matters is whether the links on a page point to the pages you want crawled and ranked.

How do you use the extracted URLs for an SEO audit?

Run the extractor on the pages that carry the most weight: the home page, your main categories and your best articles. Then work through the list in this order.

  • Check your money pages are linked. Search the internal list for your product, service and pricing pages. A page with no internal link from your strong pages gets little authority.
  • Find links that lead nowhere. Run the same page through the broken link checker, which tests each of its links for 404s, server errors and redirects.
  • Remove redirect hops. Internal links that pass through a redirect waste crawl time. Test suspicious ones with the redirect checker and link to the final URL.
  • Spot parameters and duplicates. Tracking parameters, session IDs or sort orders in internal links create duplicate URLs. Link to the clean version.
  • Review outbound links. Paid or sponsored links should carry rel="sponsored" and user content rel="ugc", as Google asks (Google, qualify outbound links).

For the theory behind these checks, see our glossary entries on internal linking and anchor text.

Which use cases does a URL extractor cover?

Use caseWhich list to copyNext step
Site migrationInternal links of your key pagesBuild the old to new URL mapping and redirect each old URL
Competitor researchInternal links of a competitor's hub pageSee which topics and pages they push the hardest
Outbound link reviewExternal linksRemove dead sources, qualify paid ones
Sitemap checkInternal linksCompare with your sitemap to find pages that are linked but not listed
Content refreshBothUpdate old sources and add links to newer articles

For a migration, Google recommends preparing a mapping from the current URLs to the new ones before you redirect (Google, site moves and migrations). The extractor gives you the inventory page by page; the XML sitemap generator gives you the indexable pages of the whole site in one file.

Rainbow jumper wires laid side by side on a white background

How do you extract every URL from an XML sitemap?

The URL extractor reads the href attributes of an HTML page, so it does not read XML sitemaps. A sitemap lists its URLs in <loc> tags instead. You can copy them all with one command, then compare the list with the internal links you found on your pages.

To pull the URLs from a sitemap at a public address, run this in a terminal:

curl -s https://example.com/sitemap.xml | grep -oP '(?<=<loc>)[^<]+'

The command prints one URL per line. On macOS, install GNU grep first, because the default grep has no -P option.

What about sitemap index files?

Large sites split their sitemap into several files and list them in a sitemap index. Each sitemap can hold up to 50000 URLs or 50MB uncompressed (Google, build and submit a sitemap). Lines that end in .xml point to child sitemaps. Run the command on each of them, merge the results and remove duplicates.

Found in the sitemapLinked internallyWhat to do
YesYesHealthy, keep both
YesNoLink to it from a related article
NoYesAdd it to the sitemap if you want it indexed
NoNoDecide whether the page should appear in search at all

Fix the second row first. A page in the sitemap that no internal link points to has no path through your site, so link to it from a related article.

Tip

Check the sitemap itself before you compare. The XML sitemap checker validates the file, and a sitemap that lists redirected or broken URLs should be cleaned first. For the steps to build one from scratch, read how to create a sitemap.

A competitor's internal links show their priorities. Pages linked from the home page and from every article are the ones they want to rank. Their external links show the sources they trust, the tools they recommend and sometimes their partners, which are outreach leads for your own backlink analysis.

Doing this by hand on a few pages works. Doing it every week on several competitors does not: Sorank SEO competitor spy follows up to five of them and sends the keywords behind their new pages to your content calendar.

What are the limits of the URL extractor?

  • One page at a time. It does not crawl the site. To list every indexable page, use the sitemap generator.
  • No status codes. It lists URLs but does not test them. Run the broken link checker on the same page.
  • No anchor text or rel attributes. The list shows destinations only, not the clickable text or nofollow values.
  • Raw HTML only. Links added by JavaScript after loading are not captured.
  • Fragments are kept. /page and /page#section appear as two entries when both are linked.
  • Blocked pages. A page that blocks bots, requires a login or takes more than 15 seconds to answer returns an error.

Group pages by topic, then link every article to its hub and to its closest neighbors. Strong internal linking comes from structure, not from one-off fixes.

Every audit of internal links starts with the list of URLs on a page. Extract yours above, fix what you find, then see the Sorank plans to keep your linking and your publishing on autopilot.

How do you find all the pages on a website?

To find all the pages on a website, start with its XML sitemap, then crawl the site from the home page and compare the two lists. The sitemap shows the pages you chose to publish, the crawl shows every page that internal links can reach, and the gap between them shows which pages need a fix. Add the Pages report in Search Console to see which URLs Google has indexed.

SourceWhat it gives youWhat it misses
XML sitemapThe pages you asked search engines to indexLive pages that were never added to the file
Site crawlEvery URL reachable through internal links, with its status codeOrphan pages that no other page links to
Search Console Pages reportThe URLs Google knows and whether they are indexedPages Google has never discovered
  1. Start from the sitemap. A single sitemap file is limited to 50000 URLs or 50MB uncompressed, and larger sites must split it into several files (Google, build and submit a sitemap). If you have no file yet, build one with the XML sitemap generator, then check it with the sitemap checker.
  2. Crawl from the home page. Follow internal links only, stay on the same host, and record the status code of each URL. This finds the pages the sitemap forgot.
  3. Compare the two lists. A URL that the crawl finds but the sitemap lacks is either a page to add or a page to remove. A URL in the sitemap that the crawl never reaches is an orphan: only the sitemap points to it.
  4. Check the indexed set. The Pages report shows which URLs are indexed, which are excluded and why. Test any doubtful URL with the indexability checker.

Tip

Run the URL extractor on your home page and your main categories. Any page missing from both lists is a candidate orphan to check.

The sitemap tells you what you meant to publish, and the crawl tells you what visitors and bots actually reach. Only the comparison between the two gives a complete inventory.

Frequently asked questions

How do I extract all the links from a web page?

Enter the page URL in the free URL extractor above. It reads the HTML, removes duplicates and lists every URL in two tabs, internal and external, with a Copy all button that gives you one URL per line for a spreadsheet.

What is the difference between internal and external links?

An internal link points to another page on the same host, with or without www. An external link points to another domain or subdomain. Internal links spread authority and help crawlers find your pages; external links point readers to sources and partners.

Why are some links missing from the extracted list?

The extractor reads the HTML sent by the server and does not run JavaScript, so links added by scripts after loading are not captured. Mailto, tel, javascript and in-page anchor links are also skipped on purpose.

Sources

Other Free SEO Tools

Testimonials from ambitious founders

0 to 10000 visitors in 5 months

Celio Fabianomonrobotlavevitre.frGoogleE-commerce

0 to 5000 visits in 8 months

Thibault BMsorank.comGoogleSoftware

0 to 1104 clicks in 4 months

Dominiqueflight-sensations-idf.comGoogleLeisure and aviation

0 to 163 clicks in 6 months

Coworking Pariscoworking-paris.frGoogleOffice broker

x92 clicks in 7 months

Guide Zanzibarguidezanzibar.comGoogleTravel