Skip to content
Free tool · No signup · Nothing to install

Free URL extractor

Paste a page address or a block of text and get every link back, sorted into internal, external, image, mailto and tel links.

One URL on its own fetches that page. Anything else is scanned as text in your browser.

How to extract URLs from a page

  1. 1

    Paste a page address or some text

    A single URL fetches that page and reads its HTML. Anything else is scanned as plain text, entirely in your browser.

  2. 2

    Press Extract URLs

    Every link is resolved to an absolute address, duplicates are removed and each one is labelled by type.

  3. 3

    Filter, copy or download

    Toggle link types, copy the visible list to the clipboard or download a CSV with the URL, anchor text and type.

What you can extract

  • Internal links

    Links that stay on the same host as the page you entered.

  • External links

    Links that point to a different host, including subdomains.

  • Anchor text

    The visible text of each link, so you can see what the page calls it.

  • Image URLs

    The src of every img tag and any link that ends in an image extension.

  • Mailto links

    Email addresses wrapped in mailto: links, listed as they appear.

  • Tel links

    Phone numbers wrapped in tel: links, useful for contact page audits.

Why extract URLs

  • Site audits

    List every outgoing link on a page to check where it sends visitors and which anchors are vague.

  • Crawl planning

    See the link structure of a starting page before writing a crawler, so the scope is clear.

  • Broken link checks

    Export the list to CSV and run each URL through a status checker to find 404s.

  • Competitor research

    Pull the external links from a competitor page to see who they cite and partner with.

When this free tool is not enough

  • JavaScript-rendered pages. A simple extractor reads the HTML the server sent. Links that appear after JavaScript runs will not show up.

  • Sites that block automated requests. Some pages refuse the request outright, and the tool reports the status code it received.

  • One page at a time. This tool does not crawl a site, follow links or run on a schedule.

If you need any of those, that is what MrScraper's Web Scraper API does.

How to extract URLs with code

A URL extractor is a few lines in any language: fetch the page, find every href, resolve it against the page address and drop the duplicates.

Python
import requests
from bs4 import BeautifulSoup
from urllib.parse import urljoin

page = "https://example.com"
html = requests.get(page, headers={"User-Agent": "Mozilla/5.0"}, timeout=10).text
soup = BeautifulSoup(html, "html.parser")
links = {urljoin(page, a["href"]) for a in soup.select("a[href]")}
print("\n".join(sorted(links)))
JavaScript
const page = 'https://example.com'
const html = await (await fetch(page)).text()
const links = new Set(
  [...html.matchAll(/<a\b[^>]*href=["']([^"']+)["']/gi)].map(
    ([, href]) => new URL(href, page).href,
  ),
)
console.log([...links].join('\n'))

URL extractor FAQ

How do I extract all URLs from a web page?

You can extract every URL from a web page by pasting the page address into a URL extractor, which fetches the page's HTML and returns each link it finds. The MrScraper URL extractor lists the href of every anchor, image and image-map tag, resolves relative paths to absolute URLs and removes duplicates before showing the results.

How do I get all the links from a block of text?

A block of text can be scanned for links by pasting the text into the URL extractor instead of a page address. The extractor looks for anything that starts with http://, https://, www., mailto: or tel:, trims trailing punctuation such as commas and closing brackets, and lists each unique address once. The scan runs in the browser and sends nothing to a server.

What is the difference between internal and external links?

An internal link points to a page on the same host as the page being scanned, and an external link points to a different host. The URL extractor compares the hostname of each link with the hostname of the page address you entered. Site audits usually focus on internal links, while outreach and competitor research look at external links.

Can I extract URLs without writing code?

URLs can be extracted without writing any code by using a browser-based tool such as the MrScraper URL extractor. Paste a page address or a block of text, press Extract URLs and copy the list or download the CSV file. No account, signup or installation is needed, and the results appear in a few seconds for a typical page.

How do I extract links from a page that loads content with JavaScript?

Links added by JavaScript are invisible to a simple URL extractor, because a plain fetch only receives the HTML the server sends before any script runs. Extracting those links needs a headless browser that executes the page's JavaScript first and then reads the rendered DOM. The MrScraper guide to JavaScript crawling explains how that rendering step works.

Read the JavaScript crawling guide

Is there a free URL extractor with no signup?

The MrScraper URL extractor is free to use and asks for no signup, email address or account. The tool fetches one page per request, handles pages up to 2 MB of HTML and returns every link with its anchor text and type. The only limit is a fair-use cap of 30 page fetches per minute from one IP address.

How many URLs can I extract at once?

One page fetch returns every link in the first 2 MB of that page's HTML, which covers several thousand links on most sites. Text mode has no fixed cap and scans whatever is pasted into the box. Extracting links from many pages at once, or from a whole site, requires a crawler rather than a single-page extractor.

Can I export extracted URLs to CSV?

Extracted URLs can be exported to CSV with the Download CSV button below the results. The file has three columns: the absolute URL, the anchor text or image alt text, and the link type, which is internal, external, image, mailto or tel. Filters applied on the page are respected, so an internal-only view downloads an internal-only file.

Your choices

Cookie preferences

Necessary cookies keep your selection. Optional categories are disabled until you switch them on.

Strictly necessary

Remembers your privacy selection and keeps the site working.

Always on