Back to Tools

Hreflang Generator

Use cases

International SEO implementation Multi-language site setup Regional targeting configuration Site migration internationalisation

Language code detection from URL path structure with configurable folder position.

Template string generation: <xhtml:link rel="alternate" hreflang="[lang]" href="[url]"/>.

Screaming Frog internal_html.csv compatible.

Max code length filter (default 5 chars).

Fallback default language setting.

Streamlit App

Platform

Browser-based (no installation required)

Input

Screaming Frog internal_html.csv (or similar crawl)

URL path position for language (default: first folder)

Fallback language code

Output

CSV with URL, language code, generated XML tags. Or complete XML sitemap with xmlns:xhtml namespace.

Launch App View Source

Features

  • Language detection from URL path position
  • Configurable folder depth for language code
  • Max code length filter (default 5 chars)
  • Fallback default language setting
  • XML sitemap and CSV output formats

How to use

  1. 1 Upload crawl export with URLs
  2. 2 Set path position to detect language (/en/page = position 1)
  3. 3 Configure max code length and default language
  4. 4 Optionally filter by indexability
  5. 5 Download CSV or ready-to-use XML sitemap

Let's work together

Monthly retainers or one-off projects. No lengthy reports that sit in a drawer.

Let's Talk