Menu
PDF Tools
Image Tools
Converters & Utilities
Seller & Print Tools
Accounting & Business
Calculators
Text & Writing Tools
Developer & Web Tools
Creator & Social Tools
Browser Utilities & Games
Document & Design Makers
Text & Developer Tools
Exam & Form Tools

Hreflang Tag Generator

List your language pages with a code and a full URL, and get the hreflang tags as HTML, as XML sitemap entries or as an HTTP Link header. The page checks the codes and adds x-default.

How to use Hreflang Tag Generator online

  1. List the pages. Code, comma, full URL, one per line.
  2. Pick the output form. HTML, sitemap or header.
  3. Set x-default. Choose which page it points at.
  4. Copy the tags. Add them to every version.

Why use this free Hreflang Tag Generator

  • Three output forms
  • x-default support
  • Code clean-up and check
  • Repeated code warning
  • Full URL check
  • Runs in your browser

What hreflang does

When one page exists in several languages or for several regions, hreflang tells search engines which version is meant for which audience. Each page lists all its versions, including itself, by language code and full address. It is a hint to the search engine, which may still choose another version.

Codes

A code is a language such as en or fr, optionally followed by a region such as GB or a script such as Hant. The page changes en_gb to en-GB and checks the shape. It checks the form only and does not know which languages or regions you serve. The code x-default marks the page to show when no language fits.

Three output forms

The HTML form is a set of link tags for the head of each page. The sitemap form writes each page as a url entry with the full set of alternate links, so it suits large sites. The header form writes one Link header, which also works for files that are not HTML, such as PDFs.

Rules that cause trouble

Every page must list the full set, and each page must list itself. The links must agree in both directions, or the search engine may ignore them. Use full URLs that match the address of the page, including the same trailing slash. The page warns about repeated codes and malformed addresses.

Limits

This page cannot check your live site. It writes the tags from the lines you give it, in your browser, and does not fetch any page. Check the result in your search tools after you publish.

Using the tool

As you type in the Hreflang Tag Generator, the result appears at once. Open a text file into the box, or drop one on it.

Hreflang Tag Generator: frequently asked questions

Do I need x-default?
It is optional, but it helps decide what to show to visitors whose language you do not cover.
Can I mix language-only and language-region codes?
Yes, for example en and en-GB, as long as each is listed once.
Should the tags go on every page?
Yes. Each version carries the same full set, including a tag that points at itself.
Is hreflang a ranking factor?
It is a hint about which version to show. This page makes no claim about rankings.
Which output should I choose?
HTML for a few pages, sitemap for many, and the header for files that are not web pages.
Is the text I paste into the Hreflang Tag Generator uploaded?
It stays in your browser tab; the Hreflang Tag Generator sends nothing anywhere.
Is there a way to reuse the Hreflang Tag Generator result?
Press Use result as input and the Hreflang Tag Generator answer becomes the new input.

Related searches for Hreflang Tag Generator

  • Hreflang Tag Generator online
  • free Hreflang Tag Generator
  • Hreflang Tag Generator online free
  • Hreflang Tag Generator for mobile
  • Hreflang Tag Generator without sign up
  • Hreflang Tag Generator – Business & Marketing

Hreflang Tag Generator is a free online tool on MAITBOX, in the Business & Marketing group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.

More tools in Business & Marketing →

Search tools