Home Services SEO Tools Industries Neighborhoods Blog Contact Español Get Free Audit
Home/SEO Tools/Hreflang Generator
INTERNATIONAL SEO

Hreflang Tag Generator

Tell Google which language and region each version of your page targets. Add a row per version, set the language (and optional country), and copy the ready rel="alternate" hreflang tags — including x-default.

🔒 Runs 100% in your browser — no sign-up, nothing is uploaded

Usually your language selector page or your primary/default version.

    

Place these in the <head> of every listed page (each page must reference all versions, including itself), or add the equivalent entries to your XML sitemap.

What are hreflang tags?

hreflang is an attribute that tells search engines which language and (optionally) which country a specific page is meant for. When you publish the same or similar content in several languages or regions — say an English version for the US and a Spanish version — hreflang annotations help Google serve the right version to the right searcher, instead of picking one and burying the rest as duplicate content.

Each value is a language code (ISO 639-1, e.g. en, es) optionally followed by a region code (ISO 3166-1 Alpha 2, e.g. US, MX). Google reads them case-insensitively, and the common convention is lowercase throughout, like en-us or es-mx.

How to use the generated tags

You have two placement options — pick one and stay consistent:

Why include x-default?

The x-default value marks the fallback page shown to users whose language or region doesn't match any of your specific versions. It's ideal for a language-picker landing page or your primary market's homepage. It's optional but recommended for international sites, which is why it's turned on by default here.

Miami SEO tip

Bilingual is the norm for Miami businesses — an en-us page and an es (or es-us) page cover most local audiences. Keep every version's hreflang set identical and reciprocal, then validate in Google Search Console's International Targeting report before you rely on it.

Need help mapping out a multilingual site the right way? Explore our SEO services or grab another one of our free SEO tools.

Want us to handle the heavy lifting?

These free tools give you a head start — our Miami SEO team can take it the rest of the way. Get a free, no-obligation audit of your site.

Get Your Free SEO Audit