---
title: "XML Sitemap, How to Create and Submit It to Search Console"
description: "What an XML sitemap is, how to create one in WordPress with the built in feature or an SEO plugin, what a good sitemap contains, and how to submit it to Google."
image: "https://rankomodo.com/og/en.jpg"
---

# XML sitemap, how to create and submit it

**An XML sitemap is a list of the page addresses you want to show in Google. WordPress and SEO plugins create it automatically, so your job is usually to find its address and submit it to Search Console.**

General guide for any website. The Rankomodo free audit needs no account. Updated 7 November 2026

## What is an XML sitemap?

**An XML sitemap is a file listing the URLs you want Google to find and index.** It helps Google discover pages faster, especially on new sites, large sites, and pages with few links.

A sitemap is only a hint. According to the [sitemap overview from Google](https://developers.google.com/search/docs/crawling-indexing/sitemaps/overview?hl=en), it does not guarantee that every URL in it is crawled and indexed. Sites with about 500 pages or fewer that link well to each other may not need one, but a sitemap does no harm.

## How do you create a sitemap in WordPress?

**WordPress 5.5 and later creates a sitemap automatically at /wp-sitemap.xml.** SEO plugins replace it with their own. Use only one of them.

Common WordPress sitemap addresses | Source | Sitemap address |
|---|---|
| WordPress without an SEO plugin | /wp-sitemap.xml |
| Yoast SEO | /sitemap_index.xml |
| Rank Math | /sitemap_index.xml |

Other SEO plugins show the sitemap address on their settings page. Sites on Shopify and Wix also get /sitemap.xml automatically. Open the address in a browser to make sure the sitemap loads.

## How do you submit a sitemap to Search Console?

**You submit a sitemap from the Sitemaps page in Google Search Console.** Follow these steps.

1. Open Search Console and pick your website property.
2. In the left menu, choose Indexing, then Sitemaps.
3. Type the sitemap address, for example sitemap_index.xml, then press Submit.
4. Wait for the success status. The discovered pages column shows how many addresses Google read.

Also add a Sitemap line to robots.txt so other search engines find it too. The official details are in the [build and submit a sitemap guide](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap?hl=en).

## What does a good sitemap contain?

**A good sitemap lists only the pages you want to show in Google.** Every URL in it should load with status 200, carry no noindex, not redirect, and be the canonical version.

- Use full addresses, with the same https and www as your website.
- One sitemap holds at most 50,000 URLs or 50 MB. Beyond that, split it and use a sitemap index.
- Google uses lastmod dates only when they are consistently accurate, and ignores priority and changefreq.

## How can Rankomodo help?

**The Rankomodo audit looks for a sitemap in robots.txt, /sitemap.xml, /sitemap_index.xml, and /wp-sitemap.xml, then checks what it contains.** It flags a missing sitemap, sitemap URLs that are noindex, blocked, redirected, broken, or canonicalised elsewhere, and important pages left out of the sitemap.

## Common questions

### Search Console says the sitemap could not be fetched. What is wrong?

Open the sitemap address in a browser and make sure it loads without errors, then make sure robots.txt does not block it. If all of that is fine, wait a few days. This status sometimes appears even for a valid sitemap.

## Related guides

- [**Why is my page not showing up on Google?**Common causes, how to check in Search Console, and how long indexing takes.](https://rankomodo.com/help/page-not-indexed/)
- [**robots.txt, a safe example and common mistakes**What robots.txt does, a safe example, mistakes that block a site, and checks.](https://rankomodo.com/help/robots-txt/)
- [**Noindex and canonical, when to use them**Noindex versus canonical, when to use each, common mistakes, and how to check.](https://rankomodo.com/help/noindex-canonical/)

```json
[
  {
    "@context": "https://schema.org",
    "@type": "Organization",
    "@id": "https://rankomodo.com/#org",
    "name": "Rankomodo",
    "url": "https://rankomodo.com/",
    "logo": "https://rankomodo.com/icon-512.png",
    "description": "SEO tools with AI for SEO, built in Indonesia and named after Komodo Island.",
    "foundingDate": "2020",
    "foundingLocation": {
      "@type": "Place",
      "name": "Indonesia"
    },
    "parentOrganization": {
      "@type": "Organization",
      "name": "Simplicode"
    }
  },
  {
    "@context": "https://schema.org",
    "@type": "WebSite",
    "@id": "https://rankomodo.com/#website",
    "name": "Rankomodo",
    "url": "https://rankomodo.com/",
    "inLanguage": [
      "en",
      "id"
    ],
    "publisher": {
      "@id": "https://rankomodo.com/#org"
    }
  },
  {
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Home",
        "item": "https://rankomodo.com/"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "Help",
        "item": "https://rankomodo.com/help/"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "SEO basics",
        "item": "https://rankomodo.com/help/seo-basics/"
      },
      {
        "@type": "ListItem",
        "position": 4,
        "name": "XML sitemap, how to create and submit it",
        "item": "https://rankomodo.com/help/xml-sitemap/"
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "@type": "TechArticle",
    "headline": "XML sitemap, how to create and submit it",
    "description": "What an XML sitemap is, how to create one in WordPress with the built in feature or an SEO plugin, what a good sitemap contains, and how to submit it to Google.",
    "url": "https://rankomodo.com/help/xml-sitemap/",
    "mainEntityOfPage": "https://rankomodo.com/help/xml-sitemap/",
    "inLanguage": "en",
    "dateModified": "2026-11-07",
    "isPartOf": {
      "@id": "https://rankomodo.com/#website"
    },
    "publisher": {
      "@id": "https://rankomodo.com/#org"
    },
    "author": {
      "@id": "https://rankomodo.com/#org"
    }
  }
]
```
