Introducing Highlights: the context that matters
Free Tools

URL Extractor: Extract All Links from a Web Page

Get every link from any web page for free. This URL extractor renders the page, splits internal and external links, drops duplicates, and exports CSV or TXT.

How do I extract all URLs from a web page?

  1. Enter the address of the page you want to read.
  2. Click Extract links. The page is rendered in a browser first, so links added by JavaScript are included.
  3. Switch between All, Internal, and External, or type in the filter box to narrow the list by URL or anchor text.
  4. Copy the URLs, or download them as a TXT file with one URL per line or a CSV file with the URL, anchor text, and link type.

Which links does the URL extractor find?

It reads every a and area element with an href in the rendered HTML, including navigation, footer, and in-content links. Relative paths are resolved against the page URL, or against the page's base element when it has one. Links that only jump within the page, and mailto:, tel:, and javascript: links, are skipped.

What counts as an internal link?

A link is internal when its host matches the page's host, its www version, or one of its subdomains. For a page on example.com, links to www.example.com and docs.example.com are internal, and links to example.org are external.

How do I find every URL on a website, not just one page?

One page only links to part of a site. To list all of a site's pages, use a sitemap extractor: the Context.dev Map URLs API reads a domain's sitemaps, or its homepage links when there is no sitemap, and returns up to 100,000 URLs in one call for 1 credit. The free sitemap generator does the same for one domain at a time and gives you an XML file.

How do I extract links with an API?

Send the page to the web scraping API and ask for HTML, then read the href attributes yourself. Or turn on the parse format with a CSS rule such as { "links": { "selector": "a", "type": "list", "output": "@href" } } and the API returns every link as a JSON array. CSS parsing adds no credits to the 1-credit scrape.

What can you use a link extractor for?

  • SEO audits of internal links, outbound links, and anchor text
  • Finding the pages to scrape next from a directory or listing page
  • Checking navigation and footer links after a redesign
  • Collecting every resource linked from a curated list or newsletter
  • Reviewing which sites a page links out to

Frequently asked questions

Is the URL extractor free?
Yes. You can extract the links from up to 50 pages a day, with no account needed.
Does it find links added by JavaScript?
Yes. The page is rendered in a real browser before the links are collected, so menus and lists built by client-side code are included. Links that only appear after a click or a scroll can be missing.
Are duplicate links removed?
Yes. Each URL appears once, after relative paths are resolved and the #fragment is removed. When the same URL appears several times, the first non-empty anchor text is kept.
What is in the CSV export?
Three columns: url, anchor_text, and type, which is internal or external. Exports follow the filter you have selected, so you can download only the external links, for example.
Can I extract links from a page behind a login?
No. The tool reads public pages as a logged-out visitor, so pages behind a login, a paywall, or a private network are not supported.
What is the difference between a URL extractor and a sitemap extractor?
A URL extractor lists the links on one page. A sitemap extractor lists the pages a whole site publishes, usually by reading its sitemap.xml files. Use the Context.dev Map URLs API at https://www.context.dev/map when you need every page on a domain.

Ship an agent that actually knows things.

Free tier, 10-minute integration, and the same API powering agents at Mintlify, daily.dev, and Propane. No credit card to start.