Blog / How the internet works /
Sitemaps explained
A sitemap is a list of the pages on your website that you want search engines to know about. It’s a file, usually at yoursite.com/sitemap.xml, and it’s one of the simplest technical SEO tools you have.
It’s also one of the most misunderstood. Some people think a sitemap makes pages rank. It doesn’t. Others skip it entirely. Both are mistakes. Here is what a sitemap actually does, and how to make sure yours is helping rather than quietly causing confusion.
The plain-words definition
Search engines find pages mainly by following links. A sitemap is a second route: an organised list that says, “These are the URLs I’d like you to look at.”
Think of a shop with a map at the entrance. Customers can wander and find things on their own, but the map makes sure no aisle is missed, especially the new or hidden ones.
What a sitemap looks like
An XML sitemap is plain text with a simple structure. A minimal one 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-11-01</lastmod>
</url>
<url>
<loc>https://example.com/about/</loc>
<lastmod>2026-09-14</lastmod>
</url>
</urlset>
Each <url> entry has:
<loc>: the full address of the page. Required.<lastmod>: the date the page last changed in a meaningful way. Optional but useful when accurate.
You might see <priority> and <changefreq> in older sitemaps. Google has said it ignores them, so they’re not worth fussing over.
What a sitemap does
- Helps discovery. New pages, deep pages and pages with few links pointing to them get found sooner.
- Signals what you consider important, since a page’s presence in the sitemap suggests you want it indexed.
- Provides a useful cross-check. Comparing what’s in your sitemap with what’s actually indexed shows where the gaps are.
- Helps on large or new sites, where crawling everything by following links takes time.
What a sitemap does not do
- It doesn’t guarantee indexing. Search engines still decide whether a page is worth including.
- It doesn’t improve rankings.
- It doesn’t fix poor content or broken pages.
- It doesn’t block anything. To keep a page out of search, you need a noindex tag or access control. Leaving a URL out of your sitemap doesn’t hide it.
What belongs in it
A good sitemap lists the canonical, indexable pages you want people to find:
- Your home page and key landing pages
- Blog posts and articles
- Product and category pages
- Useful informational pages
What should stay out
Including the wrong URLs is the most common sitemap mistake. Leave out:
- Pages set to
noindex - Redirected URLs
- Pages that return errors (404, 500)
- Duplicate versions, such as URLs with tracking parameters
- Pages blocked in robots.txt
- Thin or low-value pages such as internal search results and tag archives that add nothing
- Pages that aren’t the canonical version
A clean sitemap says “everything here is a page I stand behind”. A messy one sends mixed signals. I looked at this in more detail in XML sitemaps on WordPress: what to include and what to leave out.
Limits and sitemap indexes
A single sitemap file can hold up to 50,000 URLs and be up to 50MB uncompressed. Larger sites split their URLs across several files and list those in a sitemap index, a sitemap of sitemaps. Many platforms do this by splitting content by type, such as one file for posts, one for pages and one for products.
Other kinds of sitemap
- Image and video sitemaps add extra information about media. Most sites don’t need them; do you need them? has the details.
- News sitemaps are for sites approved for Google News.
- HTML sitemaps are normal pages listing your site’s main sections for visitors. They help people more than search engines, and can double as a navigation backup.
How to create one
WordPress
WordPress has generated a basic sitemap by default since version 5.5, in August 2020, at /wp-sitemap.xml. Many SEO plugins create their own at /sitemap.xml or similar, with more control over what’s included. Use one source only: if you turn on a plugin’s sitemap, turn off the default so you don’t have two.
Shopify
Shopify generates a sitemap automatically at /sitemap.xml, with child sitemaps for products, collections, pages and blog posts. You can’t edit it directly, so control what appears through your product visibility and noindex settings. Shopify sitemaps: what’s included and what isn’t goes through the details.
Other platforms
Many builders, including Framer and Webflow, can generate sitemaps through settings. Check your platform’s documentation and test the URL in a browser.
Custom sites
Generate it from your database or with a script, and update it when content changes. Make sure the dates in <lastmod> are real.
How to submit it
- Check the file loads in your browser. It should show XML, not an error.
- Add it to robots.txt with a line like
Sitemap: https://example.com/sitemap.xml. That lets any crawler find it. - Submit it in Google Search Console, under Sitemaps. Enter the path and press Submit.
- Submit it in Bing Webmaster Tools too, if you want Bing coverage.
For the Shopify steps, I wrote up connecting Shopify to Search Console and submitting the sitemap.
How to check it’s healthy
Once submitted, Search Console reports whether the sitemap was read and how many URLs were discovered. Then:
- Look for errors, such as unreachable files or invalid formatting.
- Compare submitted and indexed pages in the indexing reports. A big gap isn’t automatically a problem, but it’s a prompt to investigate.
- Check the reasons pages are not indexed. “Crawled, currently not indexed” and “Duplicate” tell you different things.
- Spot-check URLs from the sitemap to see that they return a normal page.
- Watch for stray URLs such as old staging links.
Be honest with your dates. Google uses lastmod only if it’s consistently accurate. If your sitemap says every page changed today, every day, it learns to ignore the field. I explained that in technical SEO: XML sitemap last-modified dates.
Common myths
- “I need to resubmit my sitemap every time I publish.” No. Once it’s submitted, search engines recheck it periodically. Keep it updated automatically.
- “More URLs in the sitemap is better.” Quality beats quantity.
- “No sitemap means no indexing.” Small, well-linked sites get indexed without one. A sitemap still helps.
- “A sitemap helps me rank.” It helps discovery, not ranking.
Key takeaways
- A sitemap is a list of the canonical, indexable URLs you want search engines to find.
- It aids discovery; it doesn’t guarantee indexing or rankings.
- Keep out redirected, noindexed, broken and duplicate URLs.
- Submit it in Search Console, add it to robots.txt, and keep
lastmodhonest.
FAQ
Do small sites need a sitemap?
It’s not essential if the site is small and well linked, but it’s easy to set up and gives you useful reporting in Search Console.
Where do I find my sitemap?
Try /sitemap.xml, then /wp-sitemap.xml for WordPress, or look at the Sitemap line in your robots.txt.
Can I have more than one sitemap?
Yes. Large sites do, and a sitemap index ties them together.
Related reading
- Shopify sitemaps: what’s included and what isn’t
- The Search Console page indexing report explained
- XML sitemaps on WordPress: what to include and what to leave out
Open yours now. Does every URL in it deserve to be there?