Link Extractor
Extract all hyperlinks from HTML — see each href, anchor text, and link type.
9 links found
| URL | Anchor text | Type |
|---|---|---|
| / | Home | relative |
| /about | About | relative |
| https://example.com/docs | Documentation | absolute |
| https://blog.example.com | blog | absolute |
| /files/report.pdf | report (PDF) | relative |
| mailto:[email protected] | Contact us | mailto |
| tel:+15555555555 | Call us | tel |
| #section-2 | Jump to section 2 | anchor |
| //cdn.example.com/asset.js | CDN script | protocol-relative |
How link extraction works
The extractor scans the HTML for <a href="…"> tags using a regex tokenizer (no DOMParser — fully SSR-safe). It classifies each link: absolute (https://…), relative (/path), anchor (#id), protocol-relative (//…), mailto:, or tel:. Anchor text is extracted by stripping any nested HTML tags.
To encode or decode the extracted URLs use the URL Encoder. To parse a specific URL into its parts, try URL Parser. To audit your page's meta tags, see Meta Tag Analyzer.
Private & free — this tool runs entirely in your browser.
Recommended: Namecheap — Register a domain for your next project — from $1.98/yr.affiliate
Related Web & SEO tools
Meta Tag Generator
Build SEO title, description, and viewport meta tags.
Open Graph Generator
Generate Open Graph and Twitter Card meta tags.
Robots.txt Generator
Build a robots.txt file with per-bot rules. Block AI crawlers, set crawl delays, define sitemaps.
UTM Campaign URL Builder
Append UTM parameters to build trackable campaign URLs.
Hreflang Tag Generator
Generate hreflang link tags for multilingual SEO.
Sitemap XML Generator
Build an XML sitemap from a list of URLs.
SERP Snippet Preview
Preview how your page title and meta description appear in Google search.
Meta Tag Analyzer
Paste a page's HTML head to audit its title, meta, and social tags.