Hreflang

Hreflang is an HTML attribute that specifies the language and regional version of a web page so that search engines display the most relevant version to users in different countries. You use hreflang to specify relationships between pages in different languages or markets when you have multilingual or international websites. Search engines like Google use hreflang as a signal when determining which version of a page matches a user’s language and geographic location.

This is a test
I am a Senior SEM Specialist at Amplify and have 5 years of experience in SEO and 2 years of experience with Google Ads. I have a particular interest in AI and programmatic SEO, where I work with automating and scaling content production to maximize visibility and traffic. In addition, I am driven by a desire to see our clients reach their full digital potential. That is why I am constantly keeping up with the latest trends in SEO—and am always eager to apply them in practice for the benefit of Amplify’s clients.

What is hreflang?

Hreflang is an HTML attribute that tells search engines which language and which geographic audience a web page is intended for. The purpose is to help search engines present the correct version of a page to users searching from different countries or in different languages. In other words, hreflang brings structure to your international content, ensuring that users always encounter content that feels locally relevant.

The attribute works by specifying relationships between pages in different language versions. It is not a requirement, but a signal that search engines—especially Google—use when determining which page is best suited for the user. This means that hreflang does not directly affect rankings, but indirectly strengthens SEO efforts by providing more accurate search results. When working on international visibility, hreflang therefore becomes an important element of your overall SEO setup, on par with technical optimization, link structure, and sitemaps.

How do you use hreflang?

You implement hreflang via HTML, the HTTP header, or XML sitemaps. The most common approach is to place it in <head>-section on each page. Here, you specify the language and, if applicable, the region using ISO codes: ISO 639-1 for the language and ISO 3166-1 Alpha 2 for the country. This combination results in a syntax such as “da-DK” for Danish targeted at Denmark or “en-US” for English targeted at the United States.

A typical example of an HTML setup looks like this:

<link rel="alternate" hreflang="es-es" href="http://example.com/" />
<link rel="alternate" hreflang="fr-fr" href="http://example.com/fr/" />
<link rel="alternate" hreflang="pt-pt" href="http://example.com/pt/" />

Each page should link to itself as well as to its linguistic alternatives so that search engines can correctly understand the relationships. You’ll achieve the best results when the implementation is reciprocal—that is, when all versions link back to one another. If you’re working with larger websites, it’s a good idea to consolidate the implementation into XML sitemaps for a better overview and easier maintenance.

Hreflang becomes particularly relevant when you’re strategically managing your international presence in Google Ads or SEO. When your campaigns and organic content align with users’ languages and cultures, you enhance both performance and user experience. However, this requires that you configure the settings correctly so that search engines don’t mistake your pages for duplicate content.

That's why you should use hreflang

Hreflang is, first and foremost, about relevance. When used correctly, it ensures that users are shown pages that match their language and geographic preferences. This means fewer missteps in the user journey and a lower bounce rate, because users land on pages they can understand and relate to. At the same time, you signal to search engines that your language versions aren’t duplicates, but intended variants—and that protects your organic visibility.

In practice, hreflang improves conversion potential across markets because the experience feels more targeted. When you combine proper implementation with, for example, locally tailored content and targeted paid social, you often see more consistent performance across channels. This is because users get a cohesive experience all the way from the ad to the landing page.

What types and varieties are available?

There are two main types of hreflang configurations: language- and region-specific, and x-default. The language- and region-specific versions follow the “language-country” pattern, e.g., en-US or da-DK, and is used when you have a page aimed at a specific market. You can also simply specify the language alone if the content isn't regionally specific, such as en or da.

"x-default" is used as a sort of fallback when a user's language or region does not match any specific variant. It typically points to a global homepage or language selector, where the user can choose the version themselves. This provides a better user experience than redirecting everyone to a single country-specific page.

How do you use hreflang in practice?

In practice, you should only implement hreflang if you actually offer content in multiple languages or for different markets. Otherwise, it can create unnecessary complexity. Start by mapping out your language versions and verify that the URL structure supports them. Once the structure is in place, implement hreflang for each version and test the results in Google Search Console. There, you can see whether the search engine recognizes your tags correctly.

An example of the testing process could be:

  • Submit your sitemaps with hreflang tags to Google Search Console
  • Check for warnings and errors under “International Targeting”
  • Update any incorrectly paired or missing references

If you work with large e-commerce platforms that have many country-specific sites, automating hreflang tags can save time and reduce the risk of errors. At the same time, you need to ensure that your language versions reflect cultural differences—not only in text, but also in design and the use of images. Here, collaboration between content and design teams can be crucial to creating a consistent experience.

What should you keep in mind?

Although hreflang seems simple, many errors occur because tags lack reciprocity or contain incorrect codes. Be sure to follow the official ISO standards for language and region, and regularly check that all versions correctly point to one another. If a page does not reciprocate an hreflang link, Google typically ignores both references.

You should also be aware that hreflang does not replace traditional SEO. It is a technical markup that must be supplemented with optimized content, internal links, and proper structure. When you combine it with targeted SEM and locally focused content, you don’t just ensure proper display—you gain a stronger presence in every market where you operate.

Hreflang
in practice?

Are you unsure how to turn your knowledge of marketing concepts into tangible value for your business? Don’t worry—we’ve got you covered. Amplify is a full-service digital marketing agency, and we specialize in applying our expertise in strategy, branding, and digital marketing to our clients’ businesses. Fill out the form below to learn how we can deliver strategic insights and performance that drive results for your business.

Contact Us

Are you unsure how to turn your knowledge of marketing concepts into tangible value for your business? Don’t worry—we’ve got you covered. Amplify is a full-service digital marketing agency, and we specialize in applying our expertise in strategy, branding, and digital marketing to our clients’ businesses. Fill out the form below to learn how we can deliver strategic insights and performance that drive results for your business.

Learn Even More

Whether you're a generalist or a specialist in marketing, our experts have put together a number of helpful tips for you on our blog.