Runs in your browser. Nothing you enter is uploaded or stored.
To extract all the links from a page, paste its HTML source into the free HTML Link Extractor above, optionally add your site address, and press Extract links. You get a table of every link with its URL, anchor text, type (internal, external, email, phone or in-page anchor), rel attributes such as nofollow, sponsored and ugc, how many times it appears and any problems, such as empty anchor text, generic anchors like “click here” or target=”_blank” without noopener. Download the full list as a CSV. It runs in your browser and handles up to 20,000 links.
Last updated: 11 November 2026. Written by Saad Raza.
Key takeaways
- Links are how search engines find pages and how they judge what the pages are about. The anchor text, the link’s rel attributes and whether it is internal or external all matter.
- A list of every link in a section or template is the fastest way to audit navigation, footers, blog bodies and sponsored content.
- Empty anchors, such as an image link with no alt text, and generic anchors, such as “read more”, waste a chance to describe the target page and hurt accessibility.
- Links that open in a new tab should carry rel=”noopener” (or noreferrer) for security and performance reasons.
- Paid or sponsored links should be marked rel=”sponsored”, and user-generated links rel=”ugc”, in line with Google’s guidance. The tool shows which links already have them.
- Your HTML is not uploaded. Everything is processed in your browser.
Why a link list is useful
Browsers show you a page, but not the structure of its links. When you audit a site you often need the opposite view: a flat list of every link, what it says and where it goes. With one you can see how many links a template adds to every page, whether your key pages are linked from the navigation, which external sites you send visitors to, whether anchor text is varied and descriptive, and whether any links are marked nofollow that should not be, or are not marked when they should be.
Many crawlers produce this at site scale. This tool is for the quick, local jobs: a single page, a block of HTML from a template, an email, the output of a page builder, a guest post you have been sent or a block of content from a client that you want to check before it goes live.
How to use the HTML Link Extractor
- Optionally enter your site URL, for example https://saadrazaseo.com/. With it, links that point to your own domain, whether relative or absolute, are classified as internal, and relative links are resolved to full addresses in the download. Without it, links that begin with a slash are labelled relative.
- Paste the HTML source. In a browser, use “view source” and copy the part you need, or paste the HTML from your editor or template. HTML comments are ignored.
- Press Extract links.
- Read the summary and the table. The CSV download has the original link, the resolved URL, anchor text, type, rel, target, times seen and issues.
What the table tells you
| Column | What it shows |
|---|---|
| URL | The href exactly as written in the HTML |
| Anchor text | The visible text of the link. For an image link, the image’s alt text. “(none)” if there is nothing |
| Type | internal, external, relative, email, phone, anchor (a jump link starting with #) or javascript |
| Rel | nofollow, sponsored and ugc, where present |
| Seen | How many times the same URL appears |
| Issues | No anchor text, generic anchor, target=”_blank” without noopener, or an empty or placeholder href |
A worked example
The example has your site set as https://saadrazaseo.com/ and a mixed block of HTML with a navigation, a paragraph of links, a list of sources and a row of image and utility links. The tool finds 12 links, 11 of them unique, because the Free SEO tools link appears twice. Seven are internal, three are external, one is an email link and one is an in-page anchor to #faq. Two carry rel values: one is nofollow and one is sponsored.
The summary also shows 1 link with no anchor text, which is the team image link with no alt text, and 1 generic anchor, which is the “click here” link to the contact page. In the table, the Google docs link is flagged because it uses target=”_blank” without noopener, as is the Example link, while the Partner link has rel=”sponsored noopener” and passes. The pricing image link is labelled with its alt text, “Pricing table”, and is fine. This is the kind of detail that is easy to miss by eye and obvious in a table.
What to look for in the results
- Empty anchors. A link with no text, or an image with no alt, gives search engines and screen readers nothing to go on. Add alt text to image links, or visible text to icon links.
- Generic anchors. Phrases such as “click here”, “read more” and “learn more” say nothing about the target. Replace them with a short description of the page. The checker flags the common ones.
- Over-optimised anchors. If every internal link to a page uses the same exact keyword, vary it naturally. The anchor text analyzer shows the spread of anchors.
- Missing internal links. If an important page does not appear in your navigation or body links, add links to it. The internal link suggester can propose where.
- Unwanted nofollow. Nofollow on your own internal links usually wastes link value. Remove it unless there is a reason.
- Missing sponsored or ugc. Paid placements and affiliate links should be marked sponsored, and links in comments and forums ugc. Markdown-based content tools can add nofollow for you, as the Markdown to HTML converter does.
- Duplicate links. The same URL linked many times in one section is normal in navigation, but check that it is intentional in body text.
- Broken or redirecting links. The extractor does not visit links. Take the URL column and check status codes with the redirect checker or the broken link checker.
Internal links and external links
Internal links spread attention across your site and show which pages matter. Pages that nothing links to are hard to find, and pages buried many clicks from the homepage tend to be crawled less. A short list of the links in your main navigation and footer shows what every page passes on, and the body-link list shows editorial choices. External links are citations. Linking to useful, trustworthy sources helps readers, and you should mark paid or untrusted links appropriately.
Subdomains count as different hosts, so a link to blog.example.com from example.com is shown as external when you set your site to example.com. A leading www is ignored, so www and the bare domain count as the same site. Protocol-relative links that begin with two slashes are read as the same protocol and judged on their host.
Using the CSV
Open the CSV in a spreadsheet and filter by type or issues to build a fix list. Sort by times seen to spot repeated links. Combine several pages by pasting more than one HTML block, then remove repeats with the remove duplicate lines tool. If a link contains characters that look odd, decode them with the URL encoder and decoder. To check how a page title and description will look when someone does click through, use the SERP snippet preview. For a site-wide review of links, structure and crawl paths, my SEO audit goes through them page by page.
Limits
The extractor reads the HTML you paste. It does not fetch pages, run JavaScript or see links that a script adds after the page loads, so view the rendered source or copy the HTML from your browser’s inspector for those. It finds links written as anchor tags with an href. It does not list stylesheet, script or image sources, canonical tags or links inside forms. Anchor text is taken from the visible text inside the tag with other tags removed, and an image link uses the image’s alt text. It does not know whether a link is hidden by styles. Relative links are resolved only when you provide a valid site URL. It stops at 20,000 links, shows the first 1,000 in the table and includes all of them in the CSV. Everything is processed in your browser, and nothing is sent to a server.
Questions about the HTML Link Extractor
How do I extract all links from a web page?
Copy the page’s HTML source, paste it into the extractor and press Extract links. You get every link with its anchor text, type and rel attributes, and can download the list as a CSV.
How does it decide if a link is internal?
If you enter your site URL, a link is internal when it is relative or points to the same host, ignoring a leading www. Otherwise relative links are labelled relative and absolute links are labelled external.
What is generic anchor text?
Link text that does not describe the target, such as click here or read more. Descriptive anchors help users and search engines understand where a link goes.
Does the tool follow the links or check if they work?
No. It only reads the HTML you paste. To test whether links work or redirect, put the URLs into a status or redirect checker.
Is my HTML uploaded?
No. Extraction runs in your browser, so unpublished pages and client code stay on your device.
If you want help improving your internal linking and site structure, see my SEO services or ask for a free audit. You can also browse the other free on-page SEO tools.
Request received
Thank you! Saad will contact you within the next 24 hours.
Keep an eye on your phone and inbox.
