Link Extractor
Extract all links from any HTML source with our free link extractor. Paste your page source to instantly find and categorize internal links, external links, image sources, mailto addresses, tel links, and anchor fragments. Provide a base URL for accurate internal/external classification. Filter by link type and download results - no signup required.
Paste any HTML source code to extract all links - internal, external, images, mailto, tel, and anchor links. Optionally provide a base URL to classify internal vs. external links accurately. All processing runs locally in your browser.
- Internal links -
<a href>pointing to the same domain as your base URL - External links -
<a href>pointing to other domains - Image sources -
<img src>and image file URLs - Mailto links -
mailto:email addresses - Tel links -
tel:phone numbers - Anchor links -
#fragmentin-page links - Resource links -
<link href>and<script src>
Why Use Our Link Extractor?
Instant Link Extraction from HTML
Extract all links from any HTML source instantly in your browser with zero wait time. Our link extractor processes entire page sources in milliseconds and categorizes every link type automatically.
Secure Link Extractor Online
All link extraction happens locally in your browser. Your HTML source code never leaves your device, ensuring 100% privacy every time you use our link extractor online.
Link Extractor - No Installation
Use our link extractor directly in any browser with no downloads, plugins, or software required. Extract links from HTML from any device - desktop, tablet, or mobile - instantly.
Filter by Link Type
Filter extracted links by type - internal, external, image, mailto, tel, or anchor - with a single click. Summary badges show counts for each category so you can jump straight to the links you need.
Common Use Cases for Link Extractor
SEO Auditing and Internal Link Analysis
Extract all internal links from a page to audit your internal linking structure, identify orphan pages, and find link equity distribution issues. Our link extractor separates internal from external links automatically when you provide a base URL.
Broken Link Detection
Extract all links from a page source and then check each URL for 404 errors or redirects. Our link extractor gives you a clean list of every href in the HTML, ready to feed into a link checker or curl script.
Content Migration and Scraping
When migrating a website or scraping content, use our link extractor to pull all resource URLs - images, scripts, stylesheets, and anchor links - from the source HTML for systematic processing.
Email and Contact Discovery
Extract all mailto: links from a page to discover contact email addresses embedded in the HTML. Our link extractor isolates mailto links in a dedicated filter so you can find them instantly.
Competitive Research
Paste a competitor's page source into our link extractor to see all their external links, resource dependencies, and outbound link patterns. Understand their link strategy without any browser extensions.
Developer Debugging and QA
Developers use our link extractor to verify that all expected links are present in rendered HTML, check that image sources are correct, and confirm that no unintended external links were introduced during development.
Understanding Link Extraction from HTML
What is a Link Extractor?
A link extractor is a tool that parses HTML source code and identifies all hyperlinks, resource references, and URL-based attributes embedded in the markup. Modern web pages contain many types of links beyond simple <a href> tags - including image sources, stylesheet references, script sources, mailto links, telephone links, and in-page anchor fragments. Our link extractor finds all of these automatically and categorizes them by type. When you provide a base URL, the tool classifies links as internal (same domain) or external (different domain) for SEO and audit purposes.
How Our Link Extractor Works
- Paste Your HTML:Copy the page source from your browser (View Source or DevTools) and paste it into the input box. Optionally enter your site's base URL (e.g.,
https://example.com) to enable accurate internal/external classification. All processing runs entirely in your browser. - Instant Browser-Based Extraction: Click Extract Links and the link extractor scans the HTML using regex patterns to find every
href,src, and URL attribute. Duplicate links are deduplicated automatically. Your HTML never leaves your device. - Filter and Download Results: Use the filter buttons or dropdown to view only the link type you need. Copy the results to your clipboard or download them as a plain text file for further processing.
What the Link Extractor Finds
- Anchor Links (
<a href>): All hyperlinks in the page, classified as internal, external, mailto, tel, or anchor based on the href value and your base URL. - Image Sources (
<img src>): All image URLs referenced in the HTML, including relative paths and absolute URLs, with alt text where available. - Resource Links (
<link href>,<script src>): Stylesheet, canonical, preload, and script source URLs embedded in the document head and body. - Special Protocol Links: Email addresses (
mailto:), phone numbers (tel:), and in-page fragment anchors (#) are extracted and labeled separately for easy filtering.
Internal vs. External Link Classification
When you provide a base URL, our link extractor compares each link's hostname against your domain. Links pointing to the same hostname are classified as internal; links pointing to any other domain are classified as external. Relative URLs (e.g., /about or ../images/logo.png) are resolved against your base URL before classification. Without a base URL, all non-special-protocol links default to internal classification.
Related Tools
DMARC Record Checker
Check DMARC records for any domain via Cloudflare DNS-over-HTTPS. Validate email authentication policy (none/quarantine/reject), analyse alignment settings (adkim, aspf), and extract reporting addresses (rua, ruf) - free online DMARC record checker.
DNS Leak Test
Check if DNS queries and WebRTC are leaking your real IP outside your VPN tunnel. Detects local IPs via WebRTC STUN requests, checks public IP and geolocation via free APIs, and identifies DNS resolvers - free online DNS leak test.
DNS Record Comparator
Compare DNS records across Cloudflare, Google, and Quad9 nameservers automatically. Detects differences in A, MX, NS, CNAME, TXT, AAAA, and SOA records with severity indicators - free online DNS comparison tool.
Reverse DNS Lookup
Look up PTR records for any IPv4 or IPv6 address via Cloudflare DNS-over-HTTPS. Instantly find the hostname behind any IP address with DNSSEC validation status and query time - free online reverse DNS lookup tool.
Frequently Asked Questions About Link Extractor
A link extractor is a tool that parses HTML source code and finds all hyperlinks, image sources, resource references, and special protocol links (mailto, tel, anchors). Our link extractor runs entirely in your browser - paste your HTML, click Extract Links, and get a categorized list instantly with no signup required.
In any browser, right-click on the page and select "View Page Source" (or press Ctrl+U / Cmd+U). This opens the raw HTML. Select all (Ctrl+A / Cmd+A), copy, and paste it into our link extractor. Alternatively, use browser DevTools (F12) to copy the outer HTML of any element.
Absolutely. All link extraction happens locally in your browser using JavaScript. Your HTML source code is never sent to any server, stored, or logged. Your data stays completely private on your device.
Yes - our link extractor is 100% free with no signup, no account, and no usage limits. Extract links from any HTML source as many times as you need, completely free forever.
The base URL is used to classify links as internal (same domain) or external (different domain). Without it, relative URLs like /about or ../images/logo.png cannot be resolved to a full URL, so all non-special-protocol links default to internal. Providing your site's base URL (e.g., https://example.com) enables accurate classification.
Our link extractor automatically deduplicates links - if the same href appears multiple times in the HTML, it is only listed once in the output. This keeps the results clean and avoids inflated counts when the same link appears in navigation, footer, and body.
Our link extractor works with pasted HTML source code. To extract links from a live URL, first open the URL in your browser, view the page source (Ctrl+U), copy the HTML, and paste it into the tool. Direct URL fetching is not supported because browser security policies (CORS) prevent fetching arbitrary external pages from client-side JavaScript.
The link extractor finds: anchor links (<a href>), image sources (<img src>), stylesheet and canonical links (<link href>), script sources (<script src>), mailto: email links, tel: phone links, and #anchor fragment links. All are categorized and filterable by type.