UTILS.
100% in-browser
hl

Hreflang Tag Generator

Generate hreflang alternate link tags from a list of language and URL pairs.

— output appears here —

About this tool

Turn a list of language=URL pairs into <link rel="alternate" hreflang> tags, optionally adding an x-default; everything runs in your browser.

Frequently asked questions

What is x-default for?
The x-default hreflang value points search engines to the page to show when no other language matches the visitor's settings, such as a language selector.
What format should each line use?
Each line is a language or region code followed by its URL, for example 'en-us https://example.com/' separated by a space.

More tools