Hreflang XML sitemap generator
Build a sitemap with xhtml:link hreflang annotations for localized pages, with every alternate listed on every URL as Google's documentation requires.
Build a 1:1 old URL to new URL redirect map for a site migration and export it as CSV, Apache .htaccess or Nginx rewrite rules.
Runs entirely in your browser. Nothing you enter is uploaded, logged or stored.
A site migration succeeds or fails on the redirect map more than on almost anything else in the project. Google’s own documentation on moving a site with URL changes is specific about what a good map looks like, and this tool builds one against those rules directly: enter old and new URLs, watch the warnings, then export the format your server actually reads.
Google’s site-move documentation says to decide, for every old URL, where it should redirect to, and it warns against the shortcut migrations reach for under deadline pressure: “don’t redirect many old URLs to one irrelevant single URL destination, such as the home page of the new site.” Google states this can confuse users and may be treated as a soft 404 error, which means the redirect can end up carrying none of the old page’s ranking signal to anywhere useful. The one documented exception is consolidation: if several old pages now live as sections of one new page, redirecting all of them to that specific page is fine, because it is still each URL’s closest real equivalent, not a generic fallback.
Google also recommends server side permanent redirects, HTTP 301 or 308, for a move intended to be permanent. A temporary redirect leaves the old URL in a kind of limbo where search engines keep checking whether it will return, which is the opposite of what a domain or path migration needs.
The Apache format this tool generates uses mod_alias’s Redirect 301 /old-path /new-path, an
argument order of status code, then old path, then new path, placed in a .htaccess file or the
site’s virtual host config. The Nginx format uses rewrite ^/old-path$ /new-path permanent;,
where the caret and dollar anchor the match to the exact old path and permanent emits a 301.
Both directives expect a path, not a full URL with scheme and host, which is why this tool strips
the domain from any full URL you paste in before generating those two outputs; the CSV export
keeps whatever you typed, full URL or path, since a spreadsheet has no directive syntax to satisfy.
Every field here stays in your browser; nothing is sent anywhere. How much this map matters shows up in our study of 892 real domain migrations: the fastest recoveries, 19 to 23 days, all involved complete 1:1 redirect mapping validated before launch, while the slowest cases in the same dataset took over 1,000 days and never recovered at all. Build the map before the migration, not during the cleanup afterward.
Build a sitemap with xhtml:link hreflang annotations for localized pages, with every alternate listed on every URL as Google's documentation requires.
Paste status codes and see how Google's crawlers document handling each one, plus a redirect hop count against Google's 10-hop default.
Audit the links in pasted HTML against Google's rel qualifiers: sponsored for paid links, ugc for user content and nofollow when neither applies.
Validate robots meta tags and X-Robots-Tag headers against the rules Google documents, and see the combined result for Googlebot.