Skip to content

External link counter. With rel attribute audit.

Paste HTML. We count every <a> tag, split internal vs external (relative to your domain), list rel attributes per external link, and flag target='_blank' links missing rel='noopener' (a security best practice).

summary
Paste HTML to count.
rel breakdown
-
findings
-
Sources used

Parsing happens entirely in your browser. No data is sent anywhere.

Privacy: parsing happens in your browser. Nothing is sent or logged.

§ · written guide

How to use the External Link Counter

This tool counts the links in a block of HTML and splits them into internal and external. It reads every a tag that has an href, tallies the rel values on the external ones and flags external links that open in a new tab without rel=noopener. It is for writers, editors and SEO staff checking outbound links on a page before or after it goes live.

Step by step

  1. Enter your domain

    Type your site's domain, such as example.com, into the field that says Your domain. Any http:// or https:// prefix and any path are stripped for you. Without a domain, every absolute http or https link counts as external, even links to your own site.

  2. Paste the HTML

    Paste into the box that says Paste HTML here. A full page source (press Ctrl+U or Cmd+Option+U in most browsers and copy all) or just the article body both work. Only real a tags with an href are counted, so plain URLs written as text are ignored.

  3. Read the summary

    The summary panel updates as you type or paste. It shows the total number of links, the external to internal ratio and the split into internal, external, #anchor, mailto: and tel: links.

  4. Check the rel breakdown

    Under rel breakdown you see how many external links carry nofollow, sponsored, ugc, noopener and noreferrer. Only values that appear at least once are listed.

  5. Work through the findings

    The findings panel lists what to fix, such as links that open in a new tab without noopener, then shows No issues detected once nothing is flagged. Edit your HTML, paste it again and the panel updates.

Reading the result

  • Total counts every a tag with an href, including in-page #anchor, mailto: and tel: links. Those three are listed separately and are not counted as internal or external.
  • External means an absolute http or https link whose address does not contain your domain. Everything else, including relative links such as /about, counts as internal.
  • The ext / int ratio is external links divided by internal links, to two decimals. It shows the infinity sign when there are no internal links. For example, pasting a link to /about plus a link to https://web.dev with target="_blank" gives a total of 2, a ratio of 1.00, no rel attributes and one link missing rel=noopener.
  • Findings flag four things: external links with target=_blank but no noopener, more external than internal links on a page with over 5 links, nofollow on more than half of external links, and a page with links but no external ones.

Tips and common mistakes

  • Always fill in the domain. The match is a plain text match on the address, so with example.com entered, links to blog.example.com also count as internal.
  • Links that start with // (no http or https) and javascript: links are counted as internal, because they are not absolute http or https addresses.
  • The noopener check only looks for the word noopener. A link with only rel="noreferrer" is still flagged, so add noopener explicitly.
  • Use sponsored for paid links and ugc for user comments. Adding nofollow to normal editorial citations is what the nofollow finding warns about.
  • If you paste HTML copied from a browser's inspector, it includes links added by scripts. Page source shows only what the server sent, so the counts can differ.

Privacy and limits

The HTML is parsed by your browser's own DOMParser, which does not run scripts or fetch anything. Nothing you paste is sent to a server or saved, and closing the tab clears it.

Back to the tool

§ 02 · links are signals

Outbound links build authority.

SEO research consistently shows pages with editorial citations to authority sources outperform pages without. Google rewards content that demonstrates research, outbound links to web.dev, Google Search Central, primary research, and vendor docs build EEAT signal. The tool above counts and audits every <a> tag in your pasted HTML, splits internal vs external, audits rel attributes, and flags target='_blank' links missing rel='noopener'.

Three rules for outbound links. One, never add rel='nofollow' to legitimate editorial citations, it wastes the trust signal Google rewards. Use 'sponsored' for paid placements, 'ugc' for user content, and skip rel for editorial. Two, always add rel='noopener' to target='_blank' links, security best practice. Three, audit external-link count quarterly: editorial content benefits from 8-15 per 1,500 words; marketing pages benefit from 3-8 trust-building citations.

Tools in the same cluster: Internal Link Counter for the internal-link audit. Anchor Text Analyzer for the anchor-text-quality view. Heading Hierarchy Checker for the H1-H6 structure audit.

§ 03 · questions

Five answers.

What's a healthy internal-vs-external link ratio?

On editorial content (blog posts, journal articles, guides), 6-12 outbound editorial citations is typical for a well-researched 1,500-word article. Internal links should outnumber external by roughly 3:1 to 5:1, the page should send more navigation clicks within the site than out. On marketing pages (services, landing pages), external links should be minimal except for trust-building citations (vendor docs, third-party validators). On product detail pages, external links commonly hurt conversion, limit to legal-required citations only.

When should I use rel='nofollow'?

rel='nofollow' tells search engines not to pass link equity to the destination. Per Google Search Central: use 'sponsored' for paid placements (replaces nofollow for ads since 2019), 'ugc' for user-generated comments + forum posts, and 'nofollow' as a generic do-not-trust signal for editorial-uncertain links. NEVER add nofollow to legitimate editorial citations from your content to authority sources, that wastes the trust signal Google rewards. The checker above flags links that are nofollowed when they probably shouldn't be.

Why is rel='noopener' important?

rel='noopener' is a WHATWG security attribute that prevents the linked-to page from accessing window.opener (which would let it manipulate the linking page via JavaScript). Always include rel='noopener' on every <a> with target='_blank'. Modern browsers (Chrome, Firefox, Safari, Edge) implicitly add noopener to target='_blank' links since 2018-2020, but explicitly declaring it remains best practice for older browsers and clarity. The checker flags target='_blank' links missing rel='noopener'.

What's a healthy external-link count per page?

Editorial content: 8-15 external links per 1,500 words is typical for well-researched material. Marketing pages: 3-8 external citations to authority sources (vendor docs, third-party validators, certifications) builds trust + EEAT signals. SEO research consistently shows pages with editorial citations outperform pages without, Google rewards content that demonstrates research. The exception: don't link to direct competitors. Never let competitor agency sites benefit from your editorial link equity.

Does this tool save my data?

No. Parsing happens in your browser. Nothing is sent to any server.

§ 04 · link strategy audit

Link strategy off-balance?

Our SEO engagements audit internal + external link mesh, fix nofollow misuse, add missing rel=noopener, and ship the editorial-citation framework for EEAT signal building.

Published · Last updated .

Priya sent you a message Online now

Talk to a Developer Now

Share your name and email to reply.

Reply