{"id":625,"date":"2019-10-03T09:53:25","date_gmt":"2019-10-03T09:53:25","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/2019\/10\/03\/remove-image-url-from-sitemap-xml-in-magento-2\/"},"modified":"2025-05-22T15:50:47","modified_gmt":"2025-05-22T10:20:47","slug":"remove-image-url-from-sitemap-xml-in-magento-2","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/remove-image-url-from-sitemap-xml-in-magento-2\/","title":{"rendered":"How to Remove Image URL from sitemap.xml in Magento 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">As per <a href=\"https:\/\/developers.google.com\/search\/docs\/crawling-indexing\/sitemaps\/build-sitemap\" target=\"_blank\" rel=\"noreferrer noopener\">Google<\/a>, a sitemap can contain a maximum of 50000 URLs with a maximum size of 50 MB (Uncompressed). If you have a bigger website having thousands of URLs, you may require to exclude image URLs from the sitemap to fit the validation or you need to breakdown the list in multiple sitemaps. SEOs may want sometimes to focus only on crawling pages&nbsp;and not the images. It\u2019s because Google automatically indexes images when it indexes the pages. And thus, you may want Google to focus on your pages prior to images. So, you need to <strong>remove image URL from sitemap.xml in Magento 2<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The easy-to-follow steps mentioned below will remove the image URLs and not allow search engine bots to crawl them!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps to Remove Image URL from sitemap.xml in Magento 2:<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Login<\/strong> to admin panel<\/li>\n\n\n\n<li>Navigate to <strong>Stores &gt; Configuration &gt; Catalog &gt; XML Sitemap<\/strong><\/li>\n\n\n\n<li>Expand <strong>Product Options<\/strong><\/li>\n\n\n\n<li>Set \u201cNone\u201d to <strong>Add Images into Sitemap<\/strong><\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/09\/How-to-Remove-Image-URL-from-sitemap.xml-in-Magento-2-1024x535.png\" alt=\"How to Remove Image URL from sitemap.xml in Magento 2\" class=\"wp-image-6513\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Can it be any simpler!&nbsp; <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also refer to Remove Image URL from sitemap.xml in Magento 2 from our Magento 2 video tutorial series:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"How to Remove Image URL from Sitemap.xml in Magento 2\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/y18-mDaw4xM?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Feel free to share the solution with fellow developers and SEOs via social media.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As per Google, a sitemap can contain a maximum of 50000 URLs with a maximum size of 50 MB (Uncompressed). If you have a bigger&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-625","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=625"}],"version-history":[{"count":2,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/625\/revisions"}],"predecessor-version":[{"id":15246,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/625\/revisions\/15246"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}