Marketing & growth · Free online tool

Hreflang tag generator

Build alternate-language link tags from language codes and canonical page URLs. Prepare a reciprocal hreflang set for regional or translated versions of the same content, including an optional x-default URL.

3 guest runs per rolling 24 hours10 with a free accountPrivate inputsMobile-friendly

Hreflang tag generator workspace

Runs locally in your browser

Checking your allowance…

Guest access includes 3 public-tool runs per rolling 24 hours. Inputs stay on this device.

Add one language|URL pair per line. Reciprocal tags should appear on every language version.

Copy-ready link tags
Generated language and URL set

Use it with confidence

How to use the hreflang tag generator.

01

Add the requested inputs

Use the labelled fields in the workspace above. If example values are provided, try them first or replace them with your own.

02

Calculate and review

Use the main action when needed. Each language|URL line is validated, normalised and rendered as a rel=alternate link tag plus a review table.

03

Try a worked example

Enter en-GB|https://example.com/uk/ and fr-FR|https://example.com/fr/ to generate both alternate tags.

04

Check the assumptions

Every alternate normally needs the complete reciprocal set, and each URL should be canonical, indexable and genuinely equivalent in purpose.

Helpful answers

Hreflang tag generator FAQs.

Is the hreflang tag generator free?

Yes. Guests receive 3 runs per rolling 24 hours, verified free accounts receive 10, and Premium subscribers receive unlimited normal use.

Does UtilHub upload or save my inputs?

No. This tool runs in your browser and UtilHub does not receive or store the values you enter. Your browser or device may still retain normal local history or form data.

How does this hreflang tag generator work?

Each language|URL line is validated, normalised and rendered as a rel=alternate link tag plus a review table.

What should I check before using the result?

Every alternate normally needs the complete reciprocal set, and each URL should be canonical, indexable and genuinely equivalent in purpose.