# Hreflang Tag Generator

> Hreflang link tags, sitemap entries or headers with code validation. Runs entirely in your browser, so nothing is uploaded.

Source: https://toffeekit.com/tools/hreflang-tag-generator

**Category:** [SEO](https://toffeekit.com/category/seo) · **Price:** Free · **Runs:** in your browser, nothing is uploaded

Open the tool: https://toffeekit.com/tools/hreflang-tag-generator

**Also useful for:** hreflang, hreflang generator, x-default, international seo, language tags, alternate links, multilingual seo

## How it works

1. Pick a preset or type a language Code such as en or en-GB next to each URL.
2. Click Add language for more versions, and fix any code the validator flags.
3. Set the x-default URL for visitors who match none of your languages.
4. Choose HTML tags, XML sitemap or HTTP header and copy the output to every version.

## FAQ

### What is hreflang?

An attribute that tells Google which language and region each version of a page is for, so searchers see the right one. It doesn't change rankings by itself.

### Is it en-UK or en-GB?

en-GB. Regions use ISO 3166-1 alpha-2 country codes, and the United Kingdom's code is GB. UK is not valid.

### Can I use a country code without a language?

No. Hreflang always starts with a language code, so use de-AT for German in Austria, not AT on its own.

### What is x-default in hreflang?

The fallback URL for users whose language or region you don't target, often a language picker or your main version.

### Is Hreflang Tag Generator free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.

## Privacy

Hreflang Tag Generator runs entirely in your browser. Your files and text are processed on your device and are never uploaded.

## Related tools

- [Meta Tag Generator](https://toffeekit.com/tools/meta-tag-generator) — Title, description, Open Graph and Twitter tags with live length checks.
- [SERP Snippet Preview](https://toffeekit.com/tools/serp-snippet-preview) — See your page in Google results, cut off by real pixel width.
- [Open Graph Preview](https://toffeekit.com/tools/open-graph-preview) — Preview link cards on X, Facebook, LinkedIn, Slack, Discord, WhatsApp and more.
- [Schema Markup Generator](https://toffeekit.com/tools/schema-markup-generator) — Build JSON-LD for FAQ, Product, Article, LocalBusiness, Event and more.
- [Robots.txt Generator & Tester](https://toffeekit.com/tools/robots-txt-generator) — Build robots.txt rules, block AI crawlers and test any URL against them.
- [XML Sitemap Generator](https://toffeekit.com/tools/xml-sitemap-generator) — Turn a list of URLs or paths into a valid sitemap.xml, split at 50,000.

