๐ Anchor Text Generator: Build SEO Link Markup with rel Attributes
By ToolNimba SEO Team ยท Reviewed by ToolNimba Editorial Review, on-page and link SEO content ยท Updated 2026-06-22
This tool builds the link markup from what you enter; it does not check that the target URL exists, is safe, or is the right page. Anchor text and rel guidance reflects general best practice, not a guarantee of any particular search ranking. Always mark paid links as sponsored and confirm important links work after pasting them.
Where the link points. A bare domain is assumed to be https.
The clickable words readers and search engines see.
Tooltip text shown on hover. Leave empty to omit it.
Mix exact, partial, branded and generic anchors so your link profile looks natural. Click a suggestion to use it.
Enter a URL and anchor text to build your link tag.
Anchor text is the visible, clickable words in a hyperlink, and it tells both readers and search engines what the linked page is about. This generator turns a target URL and your chosen anchor text into a clean, ready-to-paste HTML link tag, with optional title text and toggles for rel="nofollow", rel="sponsored", rel="ugc", and opening in a new tab. It also suggests natural anchor text variations from the phrase you enter, so you can vary your wording instead of repeating the same exact-match phrase. Everything runs in your browser, so nothing you type is ever sent anywhere.
What is the Anchor Text Generator?
A hyperlink in HTML is written with the anchor element "a", where the href attribute holds the destination address and the text between the opening and closing tags is the anchor text, the part people actually click. Descriptive anchor text is better for accessibility and SEO than vague phrases, because it gives screen-reader users and search engines a clear idea of what is on the other side of the link. "Read our 2026 hiking boot guide" tells you far more than "click here". Google has confirmed that anchor text is one signal it uses to understand the topic and relevance of the page you link to, which is why thoughtful wording matters for both internal links inside your own site and external links you earn from others.
The rel attribute changes how search engines treat the link. By default a link passes ranking credit (informally called link equity) to its target. Adding rel="nofollow" asks crawlers not to pass that credit and not to treat the link as an endorsement, which is appropriate for untrusted or low-trust destinations. Google later split this into more specific values: rel="sponsored" marks paid or affiliate links, and rel="ugc" marks links inside user-generated content such as comments and forum posts. You can combine these, for example rel="sponsored nofollow" on an advert. The default, with no rel value, is a normal followed link that does pass credit. Since 2020 Google treats nofollow, sponsored and ugc as hints rather than strict directives, but using the correct value is still the recommended way to qualify your outbound links and stay within search guidelines.
When a link opens in a new tab with target="_blank", you should usually add rel="noopener noreferrer". The noopener part stops the newly opened page from gaining scripting access to your page through the window.opener reference, which is a known security and performance issue. The noreferrer part additionally hides the referring URL from the destination. Modern browsers add noopener automatically for target="_blank", but setting it yourself keeps the behaviour explicit and consistent across older browsers and email clients that may not.
There are five widely recognised types of anchor text, and a natural link profile mixes all of them rather than leaning on one. Exact-match anchors use the precise keyword the page targets, such as "running shoes". Partial-match anchors include the keyword inside a longer phrase, such as "the best running shoes for trails". Branded anchors use your brand or product name. Naked-URL anchors show the raw web address. Generic anchors use non-descriptive words like "click here" or "read more". A sixth bucket, sometimes called LSI or related anchors, uses synonyms and related terms that help search engines understand context without repeating the exact keyword. Image links count too: when an image is the link, its alt text acts as the anchor text.
The ratio between these types is where most over-optimisation problems start. After the Penguin algorithm updates, pointing many external backlinks at one page with the same exact-match money phrase became a classic spam pattern that can suppress rankings rather than help them. As a rough guide for an external backlink profile, branded anchors usually dominate at roughly 30 to 50 percent, partial-match and generic sit in the teens, naked URLs fill a smaller share, and exact-match anchors are kept low, often in the 1 to 5 percent range. These numbers are guidelines, not laws: the smartest approach is to study the anchor distribution of the pages already ranking for your target keyword and mirror what is clearly working in your niche.
Internal links follow different rules from external backlinks. Because you control every internal link on your own site, you can use clearer, more descriptive and even keyword-rich anchors to help search engines understand your site structure and to pass relevance between related pages, without the spam risk that comes from manipulating links on sites you do not own. Even so, variety still helps readers, so avoid linking every mention of a topic with the identical phrase. This tool helps on both fronts by generating correct markup and by suggesting alternative wordings so your anchors read naturally wherever they appear.
When to use it
- Quickly building a correct anchor (a href) tag without hand-writing the HTML and risking a typo in the rel or target attributes.
- Marking affiliate and sponsored links with rel="sponsored" so they comply with search engine guidelines.
- Adding rel="nofollow" to links you cite but do not want to endorse, such as competitor or low-trust sites.
- Varying anchor text across a content campaign so your external link profile looks natural rather than over-optimised.
- Generating safe new-tab links that include rel="noopener noreferrer" to avoid the window.opener security issue.
- Planning descriptive internal-link anchors for a large site so related pages reinforce one another without repeating one exact phrase.
How to use the Anchor Text Generator
- Enter the target URL the link should point to, including https:// (a bare domain is assumed to be https).
- Type the anchor text, the words you want readers to click. Leave it blank to use the URL itself as the text.
- Optionally add title text for the hover tooltip.
- Toggle the rel and target attributes you need: nofollow, sponsored, ugc, open in new tab, and noopener noreferrer.
- Copy the generated HTML link markup and paste it into your page or content editor.
- Use the suggested anchor text variations to mix exact, partial, branded, naked and generic anchors.
Formula & method
Worked examples
You want a normal followed link to a guide, with the anchor text "best running shoes 2026".
- Enter the URL https://example.com/running-shoes.
- Enter the anchor text best running shoes 2026.
- Leave all rel toggles off so the link passes ranking credit.
- Wrap the text in an anchor element pointing at the URL.
Result: a href="https://example.com/running-shoes" wrapping the text best running shoes 2026
You are adding an affiliate link that opens in a new tab and must not pass credit.
- Enter the URL https://shop.example.com/product.
- Enter the anchor text shop the deal.
- Turn on Open in new tab, which adds target="_blank".
- Turn on sponsored and keep noopener noreferrer on for safety.
Result: a href="https://shop.example.com/product" with target="_blank" and rel="sponsored noopener noreferrer" wrapping the text shop the deal
You are diversifying anchors for a link-building campaign so the profile is not all exact match.
- Start from the exact-match phrase running shoes.
- Generate variations such as the partial match best running shoes for beginners.
- Add a branded anchor like Acme Running and a naked URL example.com/running-shoes.
- Reserve one or two generic anchors such as see the guide for variety.
Result: A mixed set of anchors (exact, partial, branded, naked URL and generic) that reads naturally instead of repeating one money phrase
The five (plus one) types of anchor text
| Anchor type | What it is | Example for a running-shoes page |
|---|---|---|
| Exact match | The precise keyword the page targets | running shoes |
| Partial match | The keyword inside a longer phrase | best running shoes for trails |
| Branded | Your brand or product name | Acme Running |
| Naked URL | The raw web address as text | example.com/running-shoes |
| Generic | Non-descriptive filler words | click here, read more |
| LSI / related | Synonyms and related terms | trail footwear, jogging trainers |
Rough anchor text ratio guide for an external backlink profile
| Anchor type | Typical share | Why |
|---|---|---|
| Branded | 30 to 50% | Looks natural; brand mentions earn links organically |
| Naked URL | 15 to 25% | Common in citations and references |
| Generic | 10 to 20% | Real editors often link with read more or here |
| Partial match | 10 to 20% | Adds relevance with low spam risk |
| Exact match | 1 to 5% | Powerful but risky; keep it low to avoid penalties |
What each rel value tells search engines
| rel value | Meaning |
|---|---|
| (none) | A normal link that passes ranking credit and counts as a regular endorsement. |
| nofollow | Do not pass ranking credit; use for links you do not vouch for. |
| sponsored | A paid, advertised or affiliate link. |
| ugc | A link inside user-generated content such as a comment or forum post. |
| noopener | Stops the new tab from accessing your page via window.opener. |
| noreferrer | Hides your page URL from the destination and also implies noopener. |
Common mistakes to avoid
- Over-using exact-match anchor text. Pointing dozens of external links at one page with the identical money phrase looks manipulative and can trigger a Penguin-style demotion. Keep exact match low, often 1 to 5 percent of the profile, and vary your wording with partial, branded, naked URL and generic anchors so the profile reads as natural.
- Using vague anchors like "click here". Generic anchor text gives readers and search engines no idea what the link is about, and it is poor for accessibility. Prefer descriptive text that names the destination, and reserve generic anchors for occasional variety.
- Forgetting rel="sponsored" on paid links. Affiliate and paid links must be marked with rel="sponsored" (or at least nofollow). Leaving them as normal followed links breaks search engine guidelines and can put your site at risk of a manual action.
- Opening new tabs without noopener. A target="_blank" link without rel="noopener" lets the opened page reach back into yours through window.opener, a real security and performance issue. Add noopener noreferrer to new-tab links.
- Putting the URL in the anchor text by mistake. The href is the destination and the anchor text is the visible label; they do not have to match. Use readable words as the anchor text rather than pasting the raw URL, unless a naked URL is genuinely what you want.
- Treating internal links like risky backlinks. Because you control your own internal links, descriptive and keyword-rich anchors are fine and helpful there. Being too timid with internal anchor text wastes a free chance to tell search engines what your pages are about; just avoid linking every mention with the exact same phrase.
Glossary
- Anchor text
- The visible, clickable words in a hyperlink, set between the opening and closing anchor tags.
- href
- The attribute on an anchor element that holds the destination URL the link points to.
- rel attribute
- An attribute that describes the relationship of the link, such as nofollow, sponsored or ugc, guiding how search engines treat it.
- nofollow
- A rel value that asks search engines not to pass ranking credit to the linked page.
- noopener
- A rel value that prevents a new-tab link from accessing the originating page through window.opener.
- Link equity
- The informal term for the ranking value or authority a link can pass from one page to another.
- Exact-match anchor
- Anchor text that exactly matches the target keyword phrase of the page being linked to.
- Anchor text ratio
- The mix of anchor types (branded, exact, partial, naked URL, generic) across the links pointing to a page.
Frequently asked questions
What is anchor text?
Anchor text is the clickable, visible part of a hyperlink, the words shown between the opening and closing anchor tags. It helps readers and search engines understand what the linked page is about, so descriptive anchor text is better than vague phrases like "click here".
What are the types of anchor text?
The main types are exact match (the precise target keyword), partial match (the keyword inside a longer phrase), branded (your brand or product name), naked URL (the raw web address) and generic (filler words like read more). A sixth, LSI or related anchors, uses synonyms. Image links use the image alt text as their anchor.
What is the ideal anchor text ratio?
There is no single perfect ratio, but a natural external backlink profile is usually dominated by branded anchors (around 30 to 50 percent), with naked URLs, generic and partial-match anchors filling the middle, and exact-match anchors kept low, often 1 to 5 percent. The safest approach is to match the anchor distribution of pages already ranking for your keyword.
What does rel="nofollow" do?
rel="nofollow" tells search engines not to pass ranking credit to the linked page and not to treat the link as an endorsement. Use it for links you cite but do not vouch for. Since 2020 Google treats it as a hint rather than a strict rule. Without any rel value, a link is followed by default and does pass credit.
When should I use rel="sponsored" or rel="ugc"?
Use rel="sponsored" for paid, advertised or affiliate links, and rel="ugc" for links inside user-generated content such as comments or forum posts. They are more specific than nofollow and you can combine them, for example rel="sponsored nofollow" on an advert.
Why add rel="noopener noreferrer" to new-tab links?
When a link opens in a new tab with target="_blank", noopener stops the new page from accessing your page through window.opener, closing a security and performance hole. noreferrer additionally hides your page URL from the destination. Modern browsers add noopener automatically, but setting it yourself keeps things explicit.
How do I vary my anchor text naturally?
Mix anchor types instead of repeating one exact-match phrase: use exact match, partial match, branded, naked URL and occasional generic anchors. This tool suggests variations from your phrase so your overall link profile looks natural rather than over-optimised.
Does the anchor text have to match the URL?
No. The href holds the destination and the anchor text is the visible label; they are independent. You should usually write readable, descriptive anchor text rather than pasting the raw URL, although a naked URL is fine when that is what you intend.
Is anchor text different for internal links and external backlinks?
Yes. You control every internal link on your own site, so descriptive and keyword-rich anchors are fine and help search engines understand your structure. External backlinks on sites you do not own carry more spam risk, so keep exact-match anchors low and let branded and varied anchors dominate.
Can over-optimised anchor text get my site penalised?
It can hurt rankings. After Google Penguin, pointing many external links at one page with the same exact-match keyword became a recognised spam pattern that can suppress a page rather than lift it. Keep exact match low and diversify your anchors to stay safe.
Sources
- Qualify your outbound links to Google , Google Search Central
- The anchor element and rel attribute , MDN Web Docs