An XML sitemap is a single file that lists every page on your website and tells Google where to find them. It's not strictly required — Google will eventually crawl your site even without one — but it makes indexing dramatically faster and more reliable, especially for sites with more than a handful of pages.
If your last SiteGrade audit flagged "No XML sitemap found," this guide walks through what a sitemap is, why missing one slows your SEO, and exactly how to create + submit one in under 15 minutes on every major platform.
What is an XML sitemap?
An XML sitemap is a structured file (almost always located at yourdomain.com/sitemap.xml) that contains a list of URLs on your site, when each was last updated, how often it changes, and how important it is relative to other pages.
A minimal sitemap looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
<lastmod>2026-06-08</lastmod>
<priority>1.0</priority>
</url>
<url>
<loc>https://example.com/services</loc>
<lastmod>2026-05-20</lastmod>
<priority>0.8</priority>
</url>
</urlset>Google crawls this file periodically and uses it as a guide to make sure it's found every page worth indexing. For a 10-page site, Google would probably find everything eventually without a sitemap. For a 50-page site, a sitemap shaves weeks off the time it takes for new content to show up in search.
Why does missing a sitemap hurt you?
Three real costs:
- Slower indexing of new pages. When you publish a new blog post or service page, Google might not find it for days or weeks without a sitemap. With one, it's usually indexed within 24–48 hours.
- Pages with weak internal linking get missed. Google discovers pages by following links from other pages. If a page isn't linked from anywhere, it's effectively invisible unless it's in your sitemap.
- You give up your strongest indexing signal. A sitemap is the most explicit way to say "these are the URLs I want you to index." Without one, Google guesses.
How to check if you already have one
Two ways:
- Go to
https://yourdomain.com/sitemap.xmlin your browser. If you see XML, you have a sitemap. If you see a 404, you don't. - Run a free audit at sitegrade.xyz. The XML Sitemap check tells you immediately.
Some sites have a sitemap at a non-standard URL like /sitemap_index.xml or /wp-sitemap.xml. Check your robots.txt file (at yourdomain.com/robots.txt) — if a sitemap exists, it's usually referenced there.
How to create and submit a sitemap
WordPress
WordPress generates a basic sitemap automatically (at /wp-sitemap.xml) starting in version 5.5. For a better one, install Yoast SEO or Rank Math — both free, both auto-generate a more complete sitemap with proper priorities and lastmod dates.
After installing: Yoast SEO → Tools → File Editor (or just visit /sitemap_index.xml) confirms it's live. Rank Math works the same way at /sitemap_index.xml.
Squarespace
Squarespace generates a sitemap automatically at /sitemap.xml. Nothing to install or configure. Just verify it loads.
Wix
Same as Squarespace — automatic, located at /sitemap.xml. Wix updates it whenever you publish a new page.
Shopify
Auto-generated at /sitemap.xml. Includes products, collections, pages, and blog posts. You can't modify it directly, but you can exclude specific products from it via the product's SEO settings.
Static HTML site (or hand-rolled)
Use a generator like xml-sitemaps.com (free for sites up to 500 pages). Enter your URL, click Start, download the generated sitemap.xml, and upload it to the root of your web server (next to index.html).
Next.js (App Router)
Create app/sitemap.ts:
import type { MetadataRoute } from "next";
export default function sitemap(): MetadataRoute.Sitemap {
const baseUrl = "https://example.com";
return [
{ url: baseUrl, lastModified: new Date(), priority: 1.0 },
{ url: `${baseUrl}/services`, lastModified: new Date(), priority: 0.8 },
{ url: `${baseUrl}/blog`, lastModified: new Date(), priority: 0.9 },
];
}Next.js automatically serves this at /sitemap.xml. No further configuration needed.
How to submit your sitemap to Google
Creating it is only half the job. Now tell Google about it:
- Go to Google Search Console (
search.google.com/search-console). If you don't have an account, create one and verify ownership of your domain (usually by adding a TXT record to your DNS — Search Console walks you through it). - In Search Console, select your property → click Sitemaps in the left nav.
- Under "Add a new sitemap," type
sitemap.xml(orsitemap_index.xmlfor WordPress with Yoast/Rank Math) and click Submit. - You should see "Success" with a count of URLs discovered. Google will start crawling the listed pages within a few hours.
Also add a reference to your sitemap inside robots.txt (at yourdomain.com/robots.txt). Add this line:
Sitemap: https://yourdomain.com/sitemap.xmlThis makes the sitemap discoverable by any crawler that respects robots.txt, not just Google. Bing, DuckDuckGo, and other search engines benefit too.
What about Bing?
Bing has its own version of Search Console called Bing Webmaster Tools. If you've already submitted to Google Search Console, you can import the submission directly into Bing — they offer a one-click import flow. Bing traffic isn't huge (5–10% of US search volume) but it's free to set up, so do it.
How to verify it's working
- Re-run the audit at sitegrade.xyz. The XML Sitemap check should pass.
- In Search Console → Sitemaps, the status should show "Success" with a green checkmark, plus the date of the last successful read.
- A week later, check Search Console → Pages. You should see most or all of your sitemap URLs in the "Indexed" bucket.
Common sitemap mistakes to avoid
- Including pages you don't want indexed. Your sitemap should only list URLs you actually want in Google's index. Don't include admin pages, login pages, or thank-you pages.
- Including URLs that return 404 or redirect. Google flags this in Search Console and lowers your sitemap's credibility. Audit your sitemap every few months.
- Forgetting to update it. If you're on a platform that auto-generates the sitemap (WordPress with Yoast, Squarespace, Wix, Shopify, Next.js), updates are automatic. If you're hand-rolling one, you need to regenerate every time you add or remove pages.
What's next?
An XML sitemap is one of the easiest SEO checks to pass and one of the biggest single improvements to your site's indexing speed. It's also a prerequisite for most other technical SEO work — if Google can't find your pages, no amount of meta-description optimization will help.
If you haven't audited your full site yet, the free SiteGrade audit runs 15 checks in 30 seconds and tells you which others are worth fixing first.