UTILS.
Private by default
hl

Hreflang Tag Generator

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

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →
— 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