Google sitemaps are a genuinely useful SEO addition — but what if you need a dynamic sitemap and can’t use one of the sitemap recommended format file extensions? Say your setup generates a dynamic list of sitemap URLs through a server-side handler, like sitemap.ashx, and you’re not sure a .ashx extension will actually work.
Good news: it works. I’ve used dynamic file extensions for Google sitemap submission through Google Webmasters Search Console successfully, and it’s held up since.

If your sitemap is on the larger side, expect Search Console to initially show “Couldn’t fetch” on submission — give it time. As long as the sitemap is accessible and correctly formatted, refreshing the page later should show “Success.”
Two things actually matter for this to work, and the extension isn’t one of them:
- The server response isn’t unbearably slow.
- The response is UTF-8 encoded.
So: Google sitemaps genuinely do work with dynamic file extensions beyond .txt or .xml, as long as those two conditions hold. For more, browse the rest of the Tech pillar.


