Hreflang Generator
Use cases
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.
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.
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 Upload crawl export with URLs
- 2 Set path position to detect language (/en/page = position 1)
- 3 Configure max code length and default language
- 4 Optionally filter by indexability
- 5 Download CSV or ready-to-use XML sitemap
Want me to run this for you?
I offer this as a managed service. You get the insights without touching the tool.
Related Tools
Template Fingerprinting
Technical SEOIdentify page templates by analyzing HTML structure patterns.
Archive.org Broken Link Mapper
Technical SEOFind lost URLs via Archive.org and auto-map redirects using fuzzy matching.
LLM Sitemap Creator
Technical SEOUse GPT to generate hierarchical sitemap structures from keywords.
Let's work together
Monthly retainers or one-off projects. No lengthy reports that sit in a drawer.
Let's Talk