Link extractor
Paste HTML and list every link in it, resolved against a base URL, grouped as internal or external and ready to export.
HTML
Paste a page's HTML. Every link in it is listed here, once each.
When to use it
You need the list of pages a page points to, for example to decide what to scrape next. Paste the HTML and the page's address, and you get every link written out in full.
What counts as a link
Anchors are the obvious ones, but a page points at other addresses in more places than that. This tool reads a and area hrefs, link tags (canonical, alternate, next and prev among them), iframe and frame sources, form actions, and any absolute URL written out in the page's text. Each address is listed once, with the number of times it appears.
Why the page address matters
Most links in real HTML are relative, like /p/ridgeline-gtx or ?page=2. They only become addresses you can request once they're resolved against the page they came from. Enter that address and every link is resolved the way a browser would do it, including a <base href> if the page sets one. Links are then sorted into internal (same host) and external.
Reading the list when scraping a site
rel="nofollow",sponsoredandugcare flagged. They tell search engines not to pass credit, and a polite crawler may skip them.- Fragment-only links (
#reviews),mailto:andtel:links, and script pseudo-links are grouped under "Not pages". There's nothing to fetch behind them. - Links that only exist after a script runs aren't in the HTML the server sent. If the list is shorter than the page you see, paste the rendered page from your browser's element inspector instead of the source.
Questions people ask
How do I extract all links from a web page?
View the page source, copy it and paste it here. Add the page's address as the base URL so relative links are written out in full.
What counts as a link?
Anchors first, but also canonical and alternate link tags, iframes, form actions and bare URLs sitting in the text. Each one is labelled with where it came from.
What is the difference between internal and external links?
Internal links stay on the same host as the base URL, and external links go somewhere else. A crawler usually follows the first kind and records the second.
Why are some links missing?
Links added by JavaScript are not in the HTML the server sends. Copy the rendered markup from your browser's Elements panel, or from your headless browser, and paste that.
Related tools
All tools →Get started
Blocked by bot protection? $5 is 5,000 solves.
No subscriptionCredit never expiresFailed solves are free