Skip to main content
Premium Tool

Site Alternate Builder

Build a complete site-wide alternate link structure that maps every page to its localized counterparts across all your domains and subfolders.

Loading tool…

This page covers what the Site Alternate Builder does, how to generate hreflang annotations across an entire site rather than one page at a time, the step-by-step workflow, site-wide errors that break hreflang at scale, and how this builder differs from a general hreflang tag generator.

What is a site alternate builder?

A site alternate builder is a hreflang tool designed for generating alternate-language annotations at the site level rather than the page level. Most hreflang generators work on one page at a time — you enter the URLs for a single page's language variants, generate the tags, and repeat for the next page. That approach works for a 10-page site but becomes impractical for a site with hundreds or thousands of pages, each with multiple language versions.

The site alternate builder takes a different approach. You provide a URL mapping for your entire site — either as a structured CSV, a pattern template, or a sitemap import — and the tool generates the complete hreflang annotation set for every page in one operation. The output can be an XML sitemap with xhtml:link annotations (the most scalable format), a set of HTML snippets keyed by page path, or a bulk HTTP Link: header configuration.

This tool is essential for sites that treat hreflang as infrastructure rather than a per-page task: large e-commerce catalogs, documentation sites with hundreds of articles, and content platforms that publish in many languages.

How to use the site alternate builder

Follow this site-wide workflow:

  1. Import your site's URL structure. Provide the tool with a complete list of pages and their language variants. You can paste a CSV with columns for page_id, locale, and URL; upload an existing XML sitemap for parsing; or define a URL pattern template (like https://example.com/{locale}/{path}) with a list of locales and paths.
  2. Review the page-locale matrix. The tool displays a grid with pages on the vertical axis and locales on the horizontal axis. Filled cells show the assigned URL; empty cells indicate missing translations. This view immediately reveals coverage gaps across your site.
  3. Handle missing translations. For pages that do not have all language versions, decide whether to exclude the missing locale from that page's hreflang set (the safe default) or point to a fallback URL. The tool supports per-page x-default assignment.
  4. Set site-wide x-default. Choose a global x-default strategy: same-page English fallback, homepage, or a language selector page. You can override x-default for individual pages if needed.
  5. Generate the complete site hreflang package. The tool produces a downloadable XML sitemap covering every page, or a ZIP of per-page HTML snippets, or a server-config file with HTTP headers. For very large sites, output is generated in batches with progress tracking.

Common errors and how to fix them

Site-wide hreflang generation introduces errors that page-level tools never encounter:

  1. Broken reciprocity from incomplete imports. If your CSV is missing the French version of page 47 out of 500 pages, that single omission breaks reciprocity for page 47 across every locale. The page-locale matrix view catches these gaps before generation.

  2. URL pattern mismatches. If most of your site follows /{locale}/path but a few pages use a different structure (/blog/{locale}/path), a pattern-based import misses the exceptions. The tool flags URLs that do not match the declared pattern and lets you correct them individually.

  3. Sitemap size limits. An XML sitemap file can contain at most 50,000 URLs or 50 MB uncompressed. A site with 5,000 pages in 15 languages produces 75,000 hreflang URL entries — exceeding the limit. The tool automatically splits output into multiple sitemap files and generates a sitemap index file that references them.

  4. Stale URLs from removed pages. Site-wide generation from an old CSV may include pages that have been deleted or redirected. The tool warns when URLs contain common retirement signals and recommends re-crawling your site before generating hreflang annotations.

  5. Inconsistent trailing slashes across the site. One section of your site may use trailing slashes while another does not. At the site level, this inconsistency multiplies — Google treats every trailing-slash mismatch as a potential duplicate URL. The tool normalizes trailing slashes to your chosen convention and warns about entries that required normalization.

How this tool is different

The site alternate builder operates at a level of abstraction above page-level generators:

For single-page hreflang generation, the hreflang tag generator is faster and simpler. For connecting URLs across language families, try the cross-language tag builder.

Frequently asked questions

  • What is a site-wide alternate structure?
    It is the complete set of hreflang annotations covering every page on your site, ensuring that all pages point to their localized equivalents.
  • Why build alternates at the site level instead of page by page?
    A site-level approach ensures consistency, catches missing pages, and is faster than manually configuring hreflang for each URL individually.
  • How do I import my full site structure?
    Export a CSV from your CMS or sitemap with columns for each locale URL. The builder reads the CSV and generates all hreflang sets at once.
  • Can this handle sites with thousands of pages?
    Yes. Processing runs in a Web Worker so the interface stays responsive. There is no built-in page count limit.
  • What if some pages lack a translation?
    The builder generates hreflang only for the locales present. Missing translations are listed in a report so you know what to address.
  • Does the tool generate a complete XML sitemap?
    It generates the xhtml:link annotations for an XML sitemap. You can paste them into your existing sitemap or export a new one.
  • How are subdomains and subdirectories handled?
    Both are supported. The tool is URL-structure agnostic — it only cares about the URL and its associated locale code.
  • Can I update the alternate structure after initial build?
    Yes. Re-import an updated CSV and the builder regenerates all tags, adding new pages and removing deleted ones.
  • Does the tool verify reciprocity across the entire site?
    Yes. It checks every page-to-page alternate link for reciprocity and provides a consolidated error report.
  • What is the benefit over managing alternates in a CMS plugin?
    This tool provides a single view of all alternates across all pages, making it easier to audit and fix inconsistencies that CMS plugins may miss.

Related tools