StickSEO
StickSEO › Free SEO tools › Hreflang tag generator

Hreflang tag generator

Pick the language of each version of a page, paste its address, and copy the tags.

Opening

How it works

Hreflang tags tell search engines that several pages are the same page in different languages or for different countries, so a searcher in Spain gets the Spanish version and one in Mexico the Mexican one. Without them the versions compete with each other, or the wrong one is shown.

This generator writes the tags two ways: for the head of each page, and for an XML sitemap. It adds the x-default line for visitors whose language you do not cover, writes the country codes in the right case, and warns about the usual mistakes: an address that is not complete, a language used twice, one version alone. Every version must carry the same block and link back to the others, or the tags are ignored. It runs in your browser and sends nothing.

Questions

What is hreflang?

A tag that names the language, and if needed the country, of each version of a page, so search engines show each person the right one.

What is x-default?

The version shown to people whose language or country is not in your list. It is usually the English page or a page where the visitor chooses.

Do hreflang tags go on every page?

On every version, and each must list all the versions including itself. If page A names page B but B does not name A, both are ignored.

Head tags or sitemap?

Either works. Use the sitemap when there are many languages, so the pages stay light. Do not use both for the same pages.

Is en-UK right?

No. The country code of the United Kingdom is GB, so it is en-GB. A wrong code is the most common hreflang mistake.

More free SEO tools

Website SEO checker

Type a domain and get its SEO score out of 100, the reasons behind it and a short list of fixes in order of effect.

AI visibility checker

Find out whether ChatGPT, Claude, Perplexity and Gemini are allowed to read your website, crawler by crawler.

llms.txt generator

Type your domain. StickSEO reads your live site and sitemap and writes an llms.txt file ready to upload.

Robots.txt checker

See what your robots.txt really tells search engines and AI crawlers, and get a corrected file if something is wrong.

Sitemap checker

Find a website's sitemaps, count the pages inside and see how the site is organised.

Meta tag and H1 checker

Read a website's title, meta description, H1 heading, canonical and share image, with the length of each.

Website authority checker

See how established a website is from open data: popularity rank, movement over 30 days, age and history.

Domain age checker

See when a domain was registered, its age, its expiry date and its registrar, read from the registry itself.

DMARC and SPF checker

See whether mail from a domain is protected against forgery, and get the DNS record to add if it is not.

Page speed test

Test a website on a phone with Google PageSpeed Insights: performance, Core Web Vitals and page weight.

SERP snippet preview

Write a title and description and see how they will look in Google results before you publish.

Keyword density checker

Paste your text to see which words and phrases it leans on, with counts and density.

Schema markup generator

Fill in a short form and copy valid JSON-LD structured data for your page.

Submit URL to search engines

Type the address once and get every door: Google, Bing, IndexNow for Yandex, Seznam and Naver, with the key file ready to copy.

Free web directory list

Directories we really sent a website to, with what happened at each door: open form, human check, account needed, or paid.

Social profile checker

See which social profiles a website links to, which are missing, and how its link looks when shared.

Share preview checker

See how a page looks when its link is shared, edit the card live and copy the tags.

Social post generator

Turn a page or a piece of text into ready posts for LinkedIn, X, Facebook and Instagram.

Google Business Profile checker

Register or claim your business on Google, score the profile and get the fixes in order.

Citation audit

Check that your name, address and phone are the same on your website and on every listing.

Link builder

A queue of places to get a link, sent in one click, checked until the link is live, with a daily autopilot.

SEO friendly URL checker

Paste a page address. Twelve checks score it out of 100 and a cleaner address is written for you.

Title tag checker

Type a page title. See its width in pixels, whether Google will cut it, and what to change.

Meta description checker

Type a meta description. See its length, whether Google will cut it, and how to make people click.

robots.txt generator

Choose what crawlers may read, decide about AI crawlers, and copy a robots.txt file ready to upload.