Skip to main content

Free Hreflang Generator

Build spec-compliant hreflang markup for HTML and XML from a language-URL table, with duplicate codes and missing self-references checked locally.

Language & URL table
x-default row

x-default tells search engines which version to show when nothing matches — usually a language selector or the default version.

Free · No signup · The table stays in your own browser

Local checks found 2 problem(s)

  • #2: missing language code
  • #2: missing URL

What you get

Both outputs at once

HTML head link tags and XML sitemap xhtml:link entries.

Local mistakes flagged inline

Duplicate codes, invalid BCP 47, non-absolute URLs, one URL for two languages.

Optional x-default

Pick which row is x-default — or leave it unset.

FAQ

What does an hreflang declaration do?
It tells search engines which language/region versions correspond to a page, so a German user sees the German page. It declares the relationship between pages.
Does correct markup mean correct configuration?
No. The declaration must appear on every page it references (reciprocal annotations). This tool checks internal consistency of your table; whether live pages actually pair up needs an online check or Search Console verification.
Should I set x-default?
Optional. x-default names the version shown when no language matches — commonly a language selector or the broadest default. Leave it unset if there's no clear default.
HTML or XML — which one?
Either, not both required: small sites put the links in the HTML head; larger sites declare them in an XML sitemap. Declaring in both is legal but keeping one source is simpler.

Multilingual sites need more than hreflang

Glot Rank's site audit covers indexing, duplicate content, and redirect issues specific to multilingual sites — and keeps re-checking after launch. Sign up free. Paid plans and the cash A/B reports are open for purchase: subscriptions and top-ups check out in the app, and the cash reports sell by guest checkout on their report pages.

How to use this tool

  1. Enter each language code and its page URL.
  2. Review the generated declarations, add them to the pages and verify return links.

Index Directive Checker

Check up to 5 pages for HTTP status, noindex directives, canonical claims, and robots.txt — the mistakes that keep pages out of the index.

Product Data Checklist

Audit your product specs, MOQ, certifications, and lead times field by field, then export the gap list and a data-request sheet for your factory.

Lighthouse Test

Test any page's four Lighthouse scores, core web vitals, and real-user CrUX data, with the issues most worth fixing.

All free SEO tools