Hreflang Checker

Validate hreflang tags: language codes, self-reference, x-default and return links on every alternate.

What is hreflang?

Hreflang is an HTML attribute that tells search engines which language and country each version of a page is for, so Google shows the right version — for example English for the UK or Spanish for Mexico — to each user.

How to use the Hreflang Checker

    Frequently asked questions

    Is en-UK a valid hreflang code?

    No. The ISO country code for the United Kingdom is GB, so use en-gb.

    Do I need x-default?

    It is optional but recommended. It tells Google which page to show when none of your language versions match the user.

    Why are my hreflang tags ignored?

    The most common reason is missing return links: every page in the set must reference every other page, including itself.