Link (href) Extractor

Paste HTML source and pull out every link — all href URLs, deduplicated and listed one per line, ready to copy or download.

727 views

Every Link in a Page's HTML

Paste HTML source (view-source, saved HTML, or a copied snippet) and every href value from <a> tags is extracted — duplicates removed, listed one per line. It parses with the browser's own HTML engine rather than fragile regex, so it handles real-world messy markup correctly, including relative links, mailto: and tel: links.

Useful for auditing outbound links on a page, pulling a link list from a saved competitor page, or checking what a scraped HTML blob actually links to — all without sending the HTML to any server.

Frequently Asked Questions

Does it fetch the page itself, or do I need the HTML?

You provide the HTML — paste view-source output, a saved .html file's content, or any HTML snippet. The tool never fetches URLs on its own (that would require a server request this site does not make).

Are relative links included?

Yes, exactly as written in the source (e.g. /about or ../page.html) — they are not resolved to absolute URLs since that requires knowing the page's base URL.

Does it include mailto: and tel: links?

Yes — any href value is extracted regardless of scheme.

Similar Tools