Link rel analyzer
Classify internal, external, and relative HTML links and inspect nofollow, sponsored, and ugc. Free local processing with no account required.
- Clipboard
Local analysis
Analyze links in an HTML fragment: internal, external, relative, duplicates, and rel values such as nofollow, sponsored, or ugc.
Local analysis: verify the result in the target environment before using it in production.
Result
Was this tool useful?
On this page
How does this tool work?
This analyser lists every <a href> link in an HTML fragment and classifies it: internal, external, relative, other protocols (mailto, tel) or invalid. It also reports the nofollow, sponsored and ugc rel values and counts duplicates, so you can audit an article’s internal linking or check that commercial links are marked before publishing.
The tool finds each <a> tag with an href, then reads the rel attribute and splits it into values (rel="sponsored nofollow" gives two values).
With a base URL, each link is resolved to an absolute address: it is internal if it has the same origin (protocol, domain and port) as the base, external otherwise. Without a base URL, /pricing simply stays “relative”.
mailto:, tel:, sms: and javascript: links are classified separately. An href that cannot be parsed is counted as invalid.
Duplicates are calculated on the resolved address: two links to /pricing with different anchor texts count as one unique link.
How to use this tool
Paste the HTML
An article, a menu or a whole page in the HTML to analyze field.
Enter the base URL
Give the page address to separate internal and external links; it is optional.
Analyze
The Links, Unique, Internal, External and Nofollow counters appear.
Use the table
Each row gives the resolved URL, its type and its rel values; copy or download it.
Use cases
Audit an article’s internal links
Count the internal links in a piece of content and spot pages linked several times.
Check sponsored links
Make sure affiliate or partnership links carry rel="sponsored".
Prepare a domain migration
List the absolute links in a template that still point to the old domain.
Examples
Article excerpt with a partner link
The two links to /tarifs count once in Unique; the partner link is external and marked sponsored nofollow; mailto is classified as other.
Input
HTML to analyze: <a href="/tarifs">Pricing</a> <a href="https://example.com/contact">Contact</a> <a href="https://partner.example/" rel="sponsored nofollow">Partner</a> <a href="/tarifs">See pricing</a> <a href="mailto:hello@example.com">Email us</a>
Base URL: https://example.com/blog/Result
Links: 5 · Unique: 4 · Internal: 3 · External: 1 · Nofollow: 1
url type rel
https://example.com/tarifs internal
https://example.com/contact internal
https://partner.example/ external sponsored nofollow
https://example.com/tarifs internal
mailto:hello@example.com other Tips and best practices
- Always enter the base URL when auditing relative links: it is what lets the tool classify them as internal.
- Google asks for rel="sponsored" on paid or affiliate links and rel="ugc" on user-generated links; nofollow is still accepted.
- A subdomain (blog.example.com) has a different origin from example.com, so it shows as external.
- The tool does not check whether linked pages respond: finding broken links needs a crawl.
Sources and references
- HTML Living Standard — Links (opens in a new tab), WHATWGPage in English
Frequently asked questions
What is the difference between nofollow, sponsored and ugc?
sponsored marks a paid or affiliate link, ugc a link posted by a user (comment, forum), and nofollow a link you do not want to vouch for. Google treats them as hints and accepts combinations.
Why do my links show as relative?
Because no base URL was entered: without it, the tool cannot know which domain /pricing belongs to. Add the page address and run the analysis again.
How are duplicates counted?
On the resolved URL. Two links to the same address with different anchor texts make 2 links but 1 unique link; the difference is the number of duplicates.
Are links added by JavaScript detected?
No. The tool reads the HTML you paste without running scripts. Paste the rendered HTML if your links are generated client-side.
Is the HTML sent to a server?
No. The analysis runs in your browser.
Related tools
Keep going with these tools
Tools similar or complementary to this one.
Works well with
Extract every URL from text and automatically remove duplicate addresses.
Analyze key SEO signals in HTML locally.
Detect noindex, nofollow and canonical inconsistencies from HTML.
Read next
SEO pre-publish audit: sitemap, links, redirects and structured data
A practical workflow to review SEO changes before publishing: sitemap, link relationships, redirects, keyword usage and structured data.
Technical SEO checklist before publishing a Web page
Check metadata, canonical, robots, structured data, URL, internal links and images before a page goes live.
How to optimize 50 images for the Web at once
Resize a batch of images, convert them to WebP and remove metadata with one reusable Pipeline.
Optimize images for the Web without losing quality
Resize, compress and choose between WebP, AVIF and other formats with a practical workflow that reduces file size without unnecessary visual loss.