Meta Tags & On-Page · Runs in your browser · Free
Hreflang Tag Generator
Generate hreflang link tags for language and regional page versions and validate the language codes.
What this tool does
Turns pairs of language codes and URLs into <link rel="alternate" hreflang> tags and checks code format, duplicates and absolute URLs.
Who should use it
International and multilingual sites.
How it works
Each code must match the pattern language[-script][-region] or x-default, URLs must be absolute and codes unique. The output block should be placed on every language version.
How to use it
- Enter or paste language and url pairs in the form.
- Use "Load example" if you want to see how input should look.
- Press the run button. Processing happens instantly in your browser.
- Review the result panel, then copy or download the output if the tool offers it. Use Reset to start over.
Practical example
"fr-fr, https://example.com/fr/" produces a French (France) alternate link.
Understanding the results
Errors identify invalid codes or URLs. The reciprocity reminder is important because one-way annotations are ignored.
Limitations
Only syntax is checked; the tool cannot verify that every version links back. For a live check use the Hreflang Checker.
Accuracy and report transparency
Results are computed in your browser from exactly what you enter. Deterministic steps (counting, parsing, encoding, validation) are verified by an automated test-suite with known answers. Where a method is a heuristic, the result panel says "estimated". No external data is used and nothing is invented.
Privacy
Your input never leaves your device for this tool. We count anonymous events (tool opened, run, copied) without storing what you typed. See the Privacy Policy.
Frequently asked questions
Is x-default required?
No, but it is recommended as the fallback for users whose language is not listed.
Is my data sent to your server?
No. This tool runs entirely in your browser, so the text or files you enter stay on your device. We do record anonymous counts of how often each tool is opened or run (no input data) to see which tools are useful.
How accurate are the results?
Counting, parsing, encoding and validation steps are deterministic and covered by automated tests with known answers. Anything based on a heuristic is labelled "estimated" in the result panel.
Is this tool really free?
Yes. There is no account, limit or paid plan. The site is supported by advertising, which is disclosed on our Advertising Disclosure page.