CRY Tools

Hreflang Tag Generator

Generate valid hreflang tags for your multilingual pages, in both HTML and XML sitemap form.

    HTML output

    XML output

    This tool runs entirely in your browser; your data is never sent to our server.

    How to use it

    Enter a locale code and URL for each language. Add or remove rows, and choose which version acts as x-default.

    Examples

    Marking tr, en, and de versions with the English page as x-default.

    Use cases

    International launches, adding a language, regional variants, sitemap generation.

    Privacy and data handling

    The locale codes and URLs you enter are processed in your browser and never sent to our server.

    What this tool checks

    Pairs language and region codes with URLs and produces a reciprocal hreflang set plus an x-default line, output as head tags or sitemap entries.

    How to read the result

    hreflang is reciprocal: if page A lists B, B must list A, or the engine discards the whole cluster. The comparison is literal string matching, so a trailing slash or a different encoding makes two addresses count as different. Every page must also list itself. x-default names the version shown to users whose language does not match any entry.

    Common mistakes

    The common mistake is using a country code where a language code belongs: tr and en-GB are valid, uk and en_GB are not. The second is omitting the page's own entry. The third is letting the hreflang URL and the page's canonical differ in spelling, which invalidates the cluster on its own.

    What this tool cannot see

    The tool generates tags. It does not apply them and does not verify that your existing pages are reciprocal. The set is only valid if every listed address exists and returns the same set.

    Frequently asked questions

    Should a page reference itself?

    Yes. A self-reference is expected behaviour, and the tool warns you when it is missing.

    Is hreflang a ranking factor?

    No. It does not raise rankings; it helps the right language version reach the right user.

    Is x-default required?

    Not required, but useful to state which version is shown when no language matches.

    Do I need country variants of the same language?

    Only if the content genuinely differs - price, currency, legal terms. Duplicating identical content under a country code gains nothing.