Hreflang Generator

Create the hreflang link attribute for multilingual sites so Google understands the geographic targeting and can play out the regional URL or appropriate language.

What is the hreflang link attribute?

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

How is the attribute used?

In order to capture the increasing multilingual orientation of websites and to be able to better map it for the user the hreflang annotation was already introduced by Google in 2011.

Since then, it ensures that the search engine understands the particular geographic orientation of the website and delivers the appropriate language versions in the search results. Basically, with the hreflang Google that a content is still available in another language and that a certain URL is only URL is intended only for users with a certain language or from a certain region. is.

Applications for the hreflang attribute

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

  • If the site is multilingual and fully translated into other languages.
  • If a website mostly keeps a single language, but some parts (navigation, footer, etc.) are nevertheless adapted to other languages.
  • If there are several pages with the same language, but with small differences in certain currencies - e.g. a German page can be addressed in several versions to users from versions can also address users from Austria or Switzerland.
  • If only individual pages are translated into certain languages and these are also only to be accessible to users of this language or from this region should be accessible.
  • If duplicate content is to be avoided because a large part of the content is identical in the language is identical, but should nevertheless be delivered regionally differently.

How is the hreflang attribute constructed?

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

  • rel="alternate" points to an alternative language version
  • hreflang="xx-XX": xx determines the language, XX optionally the region
  • href="URL" the URL to output
  • the language should have the ISO 639-1 designation
  • the country code should be ISO 3166-1 Alpha 2 format

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

This is how the Hreflang Generator works:

The principle of the hreflang generator is simple: you enter the desired domain or URL and select and select the language and region you want the page to be displayed in.

The Hreflang Generator creates the markup automatically. With one click you can easily add add additional domains or URLs.

Use hreflang attribute for multilingual websites

The hreflang link attribute is ideal for geographically targeting multilingual and localized websites to the countries and languages. This increases usability and avoids duplicate content. content is avoided. However, the topic is complex and there are some things to consider when creating to consider. Nevertheless, the attribute is highly relevant, especially for international companies, which is why they should deal with it in detail.

Use our Hreflang Generator and let us assist you in creating the attribute for your multilingual websites.