Hreflang Generator

Erstellen Sie das hreflang Link-Attribut für mehrsprachige Websites, damit Google die geografische Ausrichtung versteht und die regionale URL oder passende Sprache ausspielen kann.

What is the hreflang link attribute?

The hreflang link attribute informs Google which URLs of a website should be used for which languages and regions. This ensures that users from a specific country only see the relevant pages in the search results.

How is the attribute used?

To capture and better represent the increasing multilingual orientation of websites, Google introduced the hreflang annotation in 2011.

Since then, it ensures that the search engine understands the specific geographical targeting of the website and delivers the appropriate language versions in the search results. In essence, the hreflang attribute tells Google that content is available in another language and a specific URL is intended only for users with a certain language or from a particular region.

Applications for the hreflang attribute

Google itself recommends the following scenarios for applying the hreflang link attribute:

  • If the page is multilingual and fully translated into other languages.
  • If a website mostly maintains one language but certain parts (navigation, footer, etc.) are adapted to other languages.
  • If there are multiple pages in the same language but with slight differences in certain spellings or even currencies – for example, a German page may target users from Austria or Switzerland in different versions.
  • If only specific pages are translated into certain languages and should only be accessible to users of that language or from that region.
  • If duplicate content is to be avoided because a significant part of the content is identical in language but needs to be delivered differently based on regions.

How is the hreflang attribute structured?

The hreflang attribute consists of two main components: the language code and the country code, which are specified as standardized ISO codes. To avoid errors, it is important to use the correct ISO format. The general structure for a URL is as follows:

  • rel=“alternate“ indicates an alternate language version.
  • hreflang=“xx-XX“: xx specifies the language, and XX (optional) specifies the region.
  • href=“URL“ specifies the URL to be displayed.
  • The language should be in the ISO 639-1 format.
  • The country code should be in the ISO 3166-1 Alpha 2 format.

The hreflang attribute can be implemented as an HTML link element in the HTML header, HTTP header, or through the XML sitemap.

How the Hreflang Generator works:

The principle of the hreflang generator is simple: You enter the desired domain or URL and select the respective language and region to serve the page accordingly.

The hreflang generator automatically creates the markup. With a single click, you can easily add additional domains or URLs.

Using the hreflang attribute for multilingual websites

The hreflang link attribute is ideal for geographically targeting multilingual and localized websites to specific countries and languages. This increases user-friendliness and avoids duplicate content. However, the topic is complex, and there are several things to consider during implementation. Nevertheless, the attribute is particularly relevant for international companies, and they should thoroughly understand it.

Use our Hreflang Generator to receive support in creating the attribute for your multilingual websites.