What Is Anchor Text? Best Practices for Optimizing Link Text

Kelly Lyons

Sep 20, 20229 min read
What is Anchor Text

What Is Anchor Text?

Anchor text is the text that a link’s attached to. It’s usually styled differently than other text (e.g., blue and underlined) so the user knows it’s clickable. Using descriptive anchor text is good for user experience and SEO, because it helps users and search engines understand what the linked resource is about.

Let’s say you were linking to the Semrush blog. It’s better to use descriptive anchor text like “Semrush blog” rather than generic anchor text like “click here.”

Tip: Use Semrush’s Site Audit tool to check for missing and non-descriptive anchor text on your site. 

Why Is Anchor Text Important?

Relevant, descriptive anchor text can improve your website’s rankings on Google. And it can enhance user experience.

That’s because both search engines and readers use anchor text to determine what a linked page is about.

So, relevant anchor text helps the Google algorithm understand your site structure. And that provides it with more context about how different pages are related to each other. 

For example, the anchor text “best pizza” tells Google that the page that follows is about the best pizza. 

Good anchor text example

On the other hand, generic anchor text like “Click here” gives zero context and is less helpful.

Bad anchor text example

When you add anchor text to your own content, you have complete control over how descriptive it is. In the above example, “best pizza” is much more descriptive than “click here.”

8 Types of Anchor Text and How They Work

These are the eight most common types of anchor text you can use on your site:


This refers to a brand name used as the anchor text, without any additional words. Branded anchor text works well if you’re citing a source or linking directly to a website.


  • “Use Semrush to check audit your site”
  • “Shop at Costco for great deals on your favorite snacks”
  • “Visit Café du Monde to try their famous beignets “

Brand + Keyword

This type of anchor text includes your brand name (or branded phrase) plus an additional keyword or some contextual information.


Exact Match

Exact match anchor text includes the exact keyword the page it is linking to is targeting. 

For example, linking to a page about sleeper sofas using the anchor text “sleeper sofa.”


Take note that Google may view an excess of exact match anchor text as a red flag. 

Let’s use the “sleeper sofa example” again. If you continuously use the anchor text “sleeper sofa,” Google may have a tougher time determining the structure of the page. Which can make it harder to rank.

Partial Match Keywords

Partial match anchor text includes a variation of the keyword the linked-to page targets. 

This means the target keyword is partially or fully included in the linked text, along with some other words for context.


Related keyword anchor text is similar to partial-match anchor text, but it doesn’t include the actual keyword. 

This type of anchor text is a good way to provide context about a page you’re linking to without overusing the same keyword.


“Naked” anchor text is when the link’s URL is used as the anchor text. 

You’ll sometimes see these at the bottom of articles as reference links.


Use naked link anchor text only as needed, as it can look messy and confusing to readers. 


Generic anchor text doesn’t include any keywords or points of reference. Users will need to read the surrounding text to determine what it’s about. 


Use generic anchor text sparingly, as it can come across as spammy. And it doesn’t help users or search engines determine what a linked page will be about.


When an image is used as a link, its alt text functions as its anchor text.

So if the image itself doesn’t load, its anchor text can still be clicked on.

Here’s an example of alt text in action from the University of Dayton:

how alt text works

Just like with traditional anchor text, alt text should be descriptive and avoid excessive keywords. 

Alt text also tends to be longer than your average anchor text because it needs to convey what’s in the image and (occasionally) why the image is contextually included in the first place.

Here’s an example for a cat scratching post:

cactus-shaped cat scratching post with pink flowers

Alt text: cactus-shaped cat scratching post with pink flowers

How to Optimize Anchor Text for SEO

Now that we’ve covered different types of anchor text, let’s dive into optimizing your anchor text for SEO.

SEO-friendly anchor text is:

  • Brief
  • Relevant to the page you’re linking to
  • Not stuffed with keywords

Here are a few general rules for crafting solid anchor text:

Make Sure Anchor Words Are Relevant

Relevant anchor text helps Google understand your site structure. Which means it could help your website rank higher. 

Using relevant anchor text also looks more natural to your readers, which means they’re more likely to click on it.

That’s because Google and human users read anchor text to learn what web pages are about. When deciding which words to use, think about what would create the most natural experience.

But just like with content, there’s a fine line between optimizing to include relevant keywords and adding too many keywords.

Here’s an example of anchor text that explains to users what kind of page they’ll find once they click the link:

anchor text linking to another page

In this example, someone is already reading an article about crocheting. If they click on the anchor text “abbreviation” in the context of the article, it makes sense to direct them to an article about common crochet abbreviations.

Don’t Over-Optimize Your Anchor Text

There’s no set length guidelines for anchor text, but it’s best to keep it as succinct as possible. We recommend keeping anchor text to five words or less.

As a reminder, Google can view an excess of exact match anchor text negatively. 

For best results, use a mix of different anchor text types. This will sound much more natural.

When coming up with anchor text, ask yourself two questions:

  • What is the most succinct but descriptive way to describe the linked page?
  • Would users expect to land on the linked page after clicking this anchor text?

Google gives us an example of what keyword stuffing and over-optimized anchor text looks like:

over-optimized anchor text

Linking out at every opportunity makes your website look spammy.

Instead of writing with links in mind, create valuable, interesting content first and then add your links where appropriate afterwards.

Here’s an example of what a strong paragraph with good anchor text looks like:

properly optimized anchor text

When you write with readers in mind, anchor text opportunities naturally present themselves. 

Pro tip: Avoid using the same anchor text multiple times on one page (even if you’re linking to different pages each time) as this may confuse both users and Google.

Pay Attention to Surrounding Text

The text surrounding your anchor text can help readers better understand the context of what you’re linking to. 

It also gives more context to search engines.

Google’s algorithm prefers natural language these days because Google tries to deliver accurate search results based on how users actually type and talk.

So it’s important to pay attention to the words surrounding your anchor text.

Think about when you encounter a link in content you’re reading. 

You don’t only look at the anchor text when you’re deciding whether or not to click the link. You’ll likely read the complete sentence that includes the anchor text, if not the entire paragraph.

Google does the same thing when analyzing your page.

For example, the anchor text “aiming for 50-55 characters” means nothing on its own as it’s only part of a sentence.

anchor text without surrounding text

On the other hand, the complete sentence—“Though aiming for 51-55 characters increases the odds that Google won’t rewrite your title tags”—tells readers and Google that the anchor text is related to title tags.

anchor text with context of surrounding words

As such, Google is able to better understand what the linked page is about based on the context of the surrounding sentences.

Fix Alt Text Issues

To check for missing alt text on your site, head to the Issues tab in the Site Audit tool.

Site Audit Issues Report

Search for “alt attribute” and you’ll see a warning come up that’s titled “x images don’t have alt attributes.”

Alt text warnings in Site Audit

Click the link (“57 images” here) to find out which image URLs are causing the problem and what page they’re on.

Pages with missing alt attributes in Site Audit

Add relevant alt text to each one.

How to Add Anchor Text

In HTML code, anchor text looks like this:

<a href="http://www.example.com">Anchor Text</a>

Content management systems (CMSs) like WordPress let users add, edit, and remove anchor text with a single click. No coding required.

Here’s how simple it is:

In WordPress, create a new post and write your content. Then, highlight the words you want to turn into anchor text.

From there, click on the link icon in the text formatting bar.

Adding a link in WordPress

Insert your target link in the space that pops up and your plain text will turn into anchor text.

Add anchor text in WordPress

After you hit publish, your anchor text should appear on your page with a different color to indicate that it’s clickable.

Anchor text on a live page

Don’t use WordPress? The process is similar for other CMSs like Wix, Squarespace, and Shopify.

How to Find & Fix Anchor Text Issues

While anchor text errors won’t break your site, they will create a poor user experience and make it difficult for Google to understand what you’re linking to.

You can use our Site Audit tool to find and fix these errors. Here’s how:

Navigate to the Site Audit, enter your domain name, and hit the “Start Audit” button.

Site Audit main page

In the window that pops up, configure your settings based on the number of pages you want checked. Then, hit the “Start Site Audit” button.

Site Audit configurations

When the audit is finished, enter your report by clicking on the project name.

Choosing a project in Site Audit

Then, click on the “Issues” tab at the top of the screen.

Site Audit Issues tab

You’ll see a full list of possible Issues, Warnings, and Errors. Type “anchor” in the search bar to filter by anchor text issues.

Using the Site Audit search function

Two notices will come up: 

  • “x links have no anchor text”: links that have empty or naked anchor text 
  • “x links on this page have non-descriptive anchor text” links that use generic anchor text or don’t provide enough context for the page they’re linking to 
Anchor text notices in Site Audit

Click on each of the links (“158 links” and “104 links” in the above example) to see each issue and what page it occurs on:

list of non-descriptive anchor text notices

Log into your CMS and use this information to fix any problems with your anchor text. 

When you next run your Site Audit, these fixes will be reflected on your report. 

Keep Learning

Anchor text affects both users and search engine crawlers. Which means that you should keep an eye on it and follow best practices.

Now that you know the importance of anchor and alt text, here are some resources to review next:

And to find and fix anchor text issues on your site, be sure to use Site Audit.

Find Keyword Ideas in Seconds

Boost SEO results with powerful keyword research

Free Keyword Research Tool

Author Photo
Writer, editor, SEO strategist, and supporter of the Oxford comma. There‘s little I enjoy more than lounging on my couch playing video games and snuggling with my dog.