Skip to content

Anchor text analyzer. The ratio test.

Paste your HTML, your brand keyword, and your target keyword. The tool buckets every <a> by anchor type and shows the ratio against Google's link-scheme thresholds. Over-optimised exact-match anchors above 10% are the threshold to watch.

anchor distribution · live

              
    Sources used by this analyzer
    • Google link-scheme spam policy
    • Master prompt §26.3 anchor-text ratio targets: branded 40-55%, URL 15-20%, generic 10-15%, partial 10-15%, exact ≤8%.

    Privacy: HTML parsed in-browser only.

    § · written guide

    How to use the Anchor Text Analyzer

    This analyzer reads every link in a block of HTML and sorts its anchor text into one of five buckets: branded, URL, generic, partial match or exact match. It then compares the share of each bucket with target ratios and flags an exact match share that looks over optimized. Use it to check a page, a guest post or a list of links before it goes live.

    Step by step

    1. Enter your brand keyword

      Type your brand name in Brand keyword. The default is Digital Heroes. Any anchor that equals or contains this text counts as branded. The match ignores upper and lower case.

    2. Enter your target keyword

      Type the phrase you want to rank for in Target keyword, for example the default shopify plus agency. An anchor that is exactly this phrase counts as exact match. An anchor that is not exactly the phrase but contains every word of it longer than two letters counts as partial match.

    3. Paste the HTML

      Paste a page source or any HTML snippet into Paste page HTML. The box starts with a sample paragraph that holds five links. Every link element is found and its visible text is used as the anchor. Plain text with no link markup has nothing to count.

    4. Read the live panel

      The anchor distribution panel updates as you type, with no button to press. It shows a bar for each bucket with its share and its count, up to three sample anchors per bucket, and a checklist of five checks.

    Reading the result

    • The line at the top of the panel sums up the checks: a tick when all five pass, a triangle when some only warn, and a cross when any check fails.
    • With the sample HTML the five links split into 2 branded (40%), 1 URL (20%), 1 generic (20%), 0 partial and 1 exact match (20%). Exact match at 20% fails, so the line reads 1 fail, 0 warn, 4 pass.
    • Exact match passes at 8% or less, warns from 9% to 12% and fails above 12%.
    • Branded passes at 40% or more and warns below 40%. URL passes from 15% to 25%. Generic passes at 25% or less and warns above it.
    • Sample size warns when the HTML holds fewer than 5 links, because a ratio built on two or three anchors tells you little.
    • Shares are rounded to whole percents. Links with no visible text, such as an image link, count toward the total but get no bar, so the bars can add up to less than 100%.

    Tips and common mistakes

    • Anything that matches no rule lands in generic, not only phrases like click here or read more. A descriptive anchor that uses neither your brand nor your keyword words raises the generic share.
    • The rules run in a fixed order: common generic phrases and URLs first, then branded, then exact match, then partial match. So an anchor such as Digital Heroes shopify plus agency counts as branded, and an anchor that looks like a web address counts as URL even if it holds your brand.
    • The URL bucket takes any anchor that starts with http or www, or that contains a domain ending such as .com, .org, .net or .io.
    • The alt text of an image inside a link is not read. An image link with no text shows up as empty, so give it visible text if you want it in a bucket.
    • The tool reads the links in the HTML you paste, which are outbound from that page. To check links pointing at your site, export them from a backlink tool and paste them in as link HTML.

    Privacy and limits

    The HTML is parsed by your own browser with its built in DOM parser. Nothing is uploaded and nothing is saved, so the boxes return to the sample when you reload the page. Scripts inside the pasted HTML are not run.

    Back to the tool

    § 02 · questions

    Six questions users ask.

    What's a healthy anchor text ratio?

    40-55% branded, 15-20% URL, 10-15% generic, 10-15% partial match, 3-8% exact match. Over-optimised exact-match above 10% triggers Google's link-scheme classifier.

    Why is exact-match risky?

    Natural editorial linking rarely produces the exact target keyword as anchor. High exact-match ratios signal manipulation. Google's link-scheme classifier flags pages where inbound exact-match exceeds ~10%.

    Does this analyse outbound or inbound?

    Outbound links from the HTML you paste. For inbound links, you need a backlink dataset (Ahrefs, Majestic). The categorisation logic is the same.

    Can I customise what counts as 'branded'?

    Yes. The brand input determines branded matches; the target keyword determines exact-match. Anchors containing the keyword + other words = partial-match.

    What about empty alt-image links?

    Image-only links with no alt text are flagged as 'empty', accessibility AND SEO issue. Image links with descriptive alt get categorised by the alt text.

    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