Skip to content

Internal link counter. Count the trails.

Paste your HTML and your site origin. The tool counts every <a href>, splits into internal / external / fragment / pseudo-URL, lists unique internal destinations, and flags accidental nofollows on internal links.

Used to distinguish internal vs external. Same-origin = internal.

link counts · live

              
    Sources used by this counter

    Privacy: HTML parsed in-browser only.

    § · written guide

    How to use the Internal Link Counter

    This counter reads the links in a piece of HTML and sorts each one as internal, external, fragment or pseudo URL. It compares every link against the site origin you enter, so a link is internal only when its protocol, host and port match yours. It is for SEO and content work, when you want to see how many of your own pages a page links to.

    Step by step

    1. Enter your site origin

      Type your site address in Your site origin, for example https://example.com. It starts filled with https://digitalheroesco.com so the sample has something to compare against. Any path after the domain is ignored.

    2. Paste the HTML

      Replace the sample in Paste page HTML with your own markup. You can paste a whole page source or just the article body. The tool looks at every a tag that has an href attribute.

    3. Read the live counts

      The link counts panel updates as you type. There is no button. The three tiles show internal, external and frag/pseudo totals, and the box below lists the actual destinations.

    4. Work through the checks

      Under the list, five checks show a green tick when they pass and an amber triangle when they need a look. Fix the HTML in your site, paste it again and watch the checks change.

    Reading the result

    • The internal tile counts every link to your origin, repeats included. Relative links such as /team/ count as internal. The list under it shows each internal path only once.
    • The external tile counts links to any other origin. The list shows up to 15 unique external addresses. When there are more than 15 external links in total, a last line gives the count past 15.
    • The frag/pseudo tile adds two groups: links that are only a fragment, such as #main, and links that start with javascript:, mailto:, tel:, sms: or whatsapp:. Neither group leads to another page.
    • With the sample HTML you get 3 internal, 1 external and 3 frag/pseudo: one fragment plus a javascript: and a mailto: link. All five checks pass.
    • Internal links ≥ 3 warns when fewer than 3 internal links are found. Unique internal destinations warns when there are none. Internal links ≤ 100 warns above 100. No nofollow on internal links warns when an internal link carries rel nofollow. All href values valid warns about empty or broken href values.

    Tips and common mistakes

    • www and non-www are different origins, and so are http and https. If your internal links show up as external, check that the origin matches your links exactly.
    • Subdomains count as external. A link from example.com to shop.example.com lands in the external group.
    • If you paste a full page source, the header menu and footer links are counted too. Paste only the main content to judge the links you wrote in the body.
    • If the panel shows Invalid origin URL, add the protocol. Type https://example.com, not example.com.
    • Links with no href at all are skipped, and links with an empty href are counted under All href values valid.

    Privacy and limits

    The HTML is parsed by your own browser and nothing is sent anywhere. The tool does not fetch your page or follow any link, so it only sees the markup you paste. The tool saves nothing.

    Back to the tool

    § 02 · questions

    Six questions users ask.

    Why does internal-link count matter?

    Pages with fewer than 3 incoming internal links suffer from the orphan-page indexation gap. The master prompt §31.6 sets the floor at 3 incoming internal links per indexable page.

    What counts as 'internal' here?

    Same-origin (same protocol + host + port). Subdomains count as different origins. Paste your domain in the origin input.

    What about fragment-only links?

    Links that are pure fragments (href="#section-1") don't navigate to a different page. They're useful for in-page nav but don't count toward Google's internal-link distribution.

    Should nofollow links count?

    Most internal-link counters include nofollow links since they still get crawled. The counter shows nofollow-tagged internal links separately so you can see if you're accidentally nofollowing your own pages.

    Why are some links 'pseudo-URLs'?

    javascript: hrefs and mailto:/tel: hrefs aren't navigable URLs. Search engines don't crawl them.

    Does this tool log my HTML?

    No. The form runs entirely in JavaScript on your device. Nothing is sent to Digital Heroes servers.

    Published · Last updated .

    Priya sent you a message Online now

    Talk to a Developer Now

    Share your name and email to reply.

    Reply