Im using a CMS that generates a sitemap automatically but without ".xml".IS this ok?

Can we put this is our robots.txt:

Sitemap: https://www.example.com/sitemap

or must it be:

Sitemap: https://www.example.com/sitemap.xml

3 Answers 3


Not mandatory. Google's guidelines allow xml, txt and html formats. Look into guidelines to get further info.

Note: if sitemap has any other format as xml, it must be encoded as utf-8 and contain nothing more then urls one per line. Sitemap in xml format allows containing of some additional informations.

  • The generated format is XML but has no ".xml" file extension. Really wanted to know how important it was to have the ".xml" extension.
    – Shraga
    Commented Feb 7, 2018 at 11:25
  • if the file is correct formatted, Google will recognize it not dependently on the file extention. You can test it through implementing it into the search console.
    – Evgeniy
    Commented Feb 7, 2018 at 11:38

After seven years of using a sitemap with an ASPX extension, we have had our sitemaps stuck in a "Couldn't fetch" status for weeks. When we added a rewrite rule that forced sitemap.xml to the aspx page, our sitemap was fetched and processed within a day. It may not be required, but it appears to have some priority.


You can have 2 types of sitemap. One for Website users which can be in html or text and another for only Search Engine which is needed only in .xml format.

  • This doesn't answer the question they are asking. They want to know if their XML sitemap needs to have a file extension or not.
    – John Conde
    Commented Feb 9, 2018 at 19:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.