Hreflang Tag Generator

Generate hreflang link tags for a page available in multiple languages.

<link rel="alternate" hreflang="en" href="https://example.com/en/">
<link rel="alternate" hreflang="vi" href="https://example.com/vi/">
<link rel="alternate" hreflang="x-default" href="https://example.com/en/">

Files never leave your device - the markup is generated entirely in your browser.

Related tools

How it works

  1. 1

    Add each locale and its URL

    One row per language/region version of the page.

  2. 2

    Set a default locale (optional)

    Adds an x-default tag pointing at that locale's URL.

  3. 3

    Copy the tags

    Paste them into every version of the page.

FAQ

Where do these tags go?
Inside <head>, on every localized version of the page - each version needs the full set of hreflang tags, including one pointing to itself.
What is x-default for?
It tells search engines which version to show a visitor whose language does not match any of the listed locales.
Does this tool send my URLs anywhere?
No - the tags are generated entirely in your browser.

Tool4U.net — every tool runs in your browser. No file ever leaves your device unless the tool says so.

© 2026 Tool4U.net