Skip to content
MakerRadar

Free tool

Hreflang tag generator

List each language version of a page and copy the hreflang tags, with the mistakes that make search engines ignore them caught first.

Language versions of one page

The page for visitors whose language isn't listed: often your English page or a language picker.

Your hreflang tags

Add a language code and a full address to see the tags.

What is an hreflang tag?

An hreflang tag tells search engines that a page exists in other languages or for other countries, and which address to show to which searcher. Each version lists every version, itself included.

What it checks

  • Every code: a two-letter language, optionally with a country (en, en-GB, pt-BR)

  • Common mistakes: en-UK, a country without a language, a code listed twice

  • Full https:// addresses: relative paths are ignored

  • An x-default for visitors whose language isn't listed

  • The same set as `<link>` tags and as sitemap entries

Use it from your AI assistant

Claude, ChatGPT, Cursor and any other MCP client can run this for you. Add the server below, then ask for it in your own words: the tool is generate_hreflang_tags. No sign-up and no key.

https://api.makerradar.io/mcp

Or call the REST API, which answers the same report as JSON:

curl -X POST https://api.makerradar.io/v1/tools/hreflang-tag-generator \
  -H "content-type: application/json" -d '{"pages":[{"lang":"en","url":"https://example.com/"},{"lang":"de","url":"https://example.com/de/"}],"xDefault":"https://example.com/"}'

MCP server guide · API reference

Get a page that passes, free

Every product on MakerRadar gets a permanent page with a clean title and description, structured data, an FAQ, a Markdown version for AI assistants and a place in our llms.txt — and a backlink you can earn.

Related tools

  • Hreflang checker

    Paste a URL and see the language versions it lists, with the mistakes that make search engines ignore them.

    Reads the page

  • Sitemap checker

    Paste your site's address: we find its sitemap the way search engines do, read it, and tell you what would stop them using it.

    Reads the page

  • Meta tag generator

    Type a title, a description and an image, see the Google result as it would show, and copy every tag your page's head needs.

    Runs in your browser

More: on-page seo

Frequently asked questions

Where do hreflang tags go?

In the `<head>` of every version of the page, or in the XML sitemap, or in an HTTP Link header for files like PDFs. Pick one method; the sitemap is easiest to maintain on a large site.

What is x-default?

The version shown to searchers whose language or country matches none of the others: usually the English page or a language picker.

Why is en-UK wrong?

The country part is an ISO 3166-1 code, and the United Kingdom's is GB. Write en-GB. A tag with an unknown code is ignored.

Do the tags have to link back?

Yes. If the English page names the German one, the German page must name the English one. Search engines ignore a pair that isn't confirmed from both sides.