The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Intermediate & Advanced SEO
    4. Sitemaps. When compressed do you use the .gz file format or the (untidy looking, IMHO) .xml.gz format?

    Sitemaps. When compressed do you use the .gz file format or the (untidy looking, IMHO) .xml.gz format?

    Intermediate & Advanced SEO
    3 2 4.8k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • NoisyLittleMonkey
      NoisyLittleMonkey last edited by

      When submitting compressed sitemaps to Google I normally use the a file named sitemap.gz

      A customer is banging on that his web guy says that sitemap.xml.gz is a better format.

      Google spiders sitemap.gz just fine and in Webmaster Tools everything looks OK...

      Interested to know other SEOmoz Pro's preferences here and also to check I haven't made an error that is going to bite me in the ass soon!

      Over to you.

      1 Reply Last reply Reply Quote 0
      • Hurf
        Hurf last edited by

        Generally the .xml.gz format is the one stated in examples there are a few references to this here : http://www.sitemaps.org/protocol.php#index

        Most sitemap generators that create both compressed and uncompressed sitemap files name them sitemap.xml and sitemap.xml.gz respectively. It also makes it clearer what the content of the zipped file is. I don't believe it is essential however, as you will direct tools such as google.com/webmasters to your xml sitemap - rather than expect it to find it of its own accord.

        I always use the .xml.gz format when compressing. I would argue that (if both formats work) neither one is 'BETTER' than the other, rather one is more ACCEPTED than the other.

        1 Reply Last reply Reply Quote 1
        • NoisyLittleMonkey
          NoisyLittleMonkey last edited by

          Thanks Big Bazza... I like the 'better' vs 'accepted' reasoning. Not too confrontational 🙂

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Is possible to submit a XML sitemap to Google without using Google Search Console?
            GastonRiera
            GastonRiera
            0
            7
            1.4k

          • XML Sitemap index within a XML sitemaps index
            Martijn_Scheijbeler
            Martijn_Scheijbeler
            0
            2
            1.1k

          • How to format a video sitemap for GWT using Vimeo iframe code
            robertrRSwalters
            robertrRSwalters
            0
            16
            1.0k

          • Is there a way to keep sitemap.xml files from getting indexed?
            irvingw
            irvingw
            0
            3
            288

          • How do I create a XML Sitemap?
            Johnny4B
            Johnny4B
            1
            7
            722

          • So I am creating an xml sitemap but what can I do to make it look better?
            ENSO
            ENSO
            0
            3
            551

          • Are there any disadvantages of switching from xml sitemaps to .asp sitemaps in GWT
            robertrRSwalters
            robertrRSwalters
            0
            3
            947

          • Can a XML sitemap index point to other sitemaps indexes?
            KeriMorgret
            KeriMorgret
            0
            3
            1.9k

          Get started with Moz Pro!

          Unlock the power of advanced SEO tools and data-driven insights.

          Start my free trial
          Products
          • Moz Pro
          • Moz Local
          • Moz API
          • Moz Data
          • STAT
          • Product Updates
          Moz Solutions
          • SMB Solutions
          • Agency Solutions
          • Enterprise Solutions
          • Digital Marketers
          Free SEO Tools
          • Domain Authority Checker
          • Link Explorer
          • Keyword Explorer
          • Competitive Research
          • Brand Authority Checker
          • Local Citation Checker
          • MozBar Extension
          • MozCast
          Resources
          • Blog
          • SEO Learning Center
          • Help Hub
          • Beginner's Guide to SEO
          • How-to Guides
          • Moz Academy
          • API Docs
          About Moz
          • About
          • Team
          • Careers
          • Contact
          Why Moz
          • Case Studies
          • Testimonials
          Get Involved
          • Become an Affiliate
          • MozCon
          • Webinars
          • Practical Marketer Series
          • MozPod
          Connect with us

          Contact the Help team

          Join our newsletter
          Moz logo
          © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
          • Accessibility
          • Terms of Use
          • Privacy