All posts
SEO & AI search

What Is an XML Sitemap? A Plain-English Definition

What is an XML sitemap? A plain definition, what belongs in one, and how Webflow, Framer, WordPress and Next.js generate sitemaps so you don't build one by hand.

By Mehdi Hassan4 min read

The short answer

An XML sitemap is a file, usually at yoursite.com/sitemap.xml, that lists the URLs you want search engines to crawl and index, often with the date each page last changed. It doesn't guarantee indexing, but it helps Google and Bing find new and updated pages faster, especially on new sites with few links.

Key takeaways

  • An XML sitemap lists the canonical URLs you want indexed. It's a hint for crawlers, not a command.
  • Webflow, Framer, WordPress and Next.js can all generate one automatically.
  • Include only live, indexable, canonical pages. No redirects, 404s, drafts or noindexed pages.
  • Submit it in Google Search Console and reference it in robots.txt.

Part of Web Design, SEO and AEO Glossary: 50 Terms Explained Simply

What is an XML sitemap?

An XML sitemap is a machine-readable list of the pages on your site that matter. Each entry has a URL and, optionally, a last-modified date. Search engines read it to discover pages they might otherwise miss and to notice when existing pages change.

It's different from an HTML sitemap, which is a page of links for people. The XML version is for crawlers only. It's one of the technical basics in our SEO and AEO glossary, next to robots.txt, which usually points crawlers to it. Our guide to XML sitemaps and robots.txt for startups covers setting up both.

How do Webflow, Framer, WordPress and Next.js create sitemaps?

Most modern platforms generate an XML sitemap automatically, so the real work is checking what goes into it rather than writing it. The table shows the default behavior on the platforms we build with.

Platform

How the sitemap is made

What to check

Webflow

Auto-generated in SEO settings, including CMS items

Exclude utility and draft pages from indexing

Framer

Generated automatically on publish

Pages set to hide from search stay out

WordPress

Core sitemap built in; SEO plugins often replace it

Only one sitemap source is active

Next.js

A sitemap file in the app directory generates it at build or request time

CMS pages are fetched and included

Custom or headless

Generated by your code or CMS

It updates when content is published

On a Next.js build, we generate the sitemap from the same CMS data that renders the pages, so a published post appears in both at once. The Next.js metadata docs cover the file convention.

What should an XML sitemap include?

An XML sitemap should include every page you want in search results, and nothing else. Every URL in it should return a 200 status, be the canonical version and be allowed by robots.txt.

  • Include: product, feature, pricing, use-case, comparison, blog and glossary pages, each at its final canonical URL.
  • Exclude: redirected URLs, 404s, noindexed pages, thank-you pages, internal search results and staging URLs.
  • Last-modified dates: only if they're accurate. Google uses lastmod when it can trust it and ignores the priority and changefreq fields.

Does a small site need an XML sitemap?

A small, well-linked site can be crawled without a sitemap, but it costs nothing to have one and it helps when the site is new or pages are added often.

Hypothetical example: a B2B startup's first sitemap check

For example, suppose a seed-stage SaaS startup launches a 12-page site on Webflow plus a blog. Its auto-generated sitemap includes a style guide page, a password-protected investor page and two template pages left over from the build.

The team sets those to noindex, which removes them from the sitemap, submits the sitemap in Search Console and checks the pages report a week later. Its real pages are discovered, and the junk never competes with them.

Sitemaps help discovery, but they don't fix weak pages or JavaScript-only content. If pages still aren't showing up, the cause is often rendering, covered in React SPA to SEO-friendly website. And when you move platforms, regenerate the sitemap as part of the migration, as we cover in Framer to Next.js migration cost.

Frequently asked questions

How do I submit an XML sitemap to Google?
Open Google Search Console, choose your property, go to the Sitemaps report and enter the sitemap URL, usually sitemap.xml. Google will fetch it and report how many URLs it found and whether there were errors. Also add a Sitemap line to your robots.txt file so other search engines and crawlers can find it without a manual submission.
How often should an XML sitemap update?
It should update whenever you publish, remove or meaningfully change a page. Webflow, Framer and most CMS-driven builds do this automatically on publish. If your sitemap is a static file someone edits by hand, it will drift out of date, so move to a generated one. Accurate last-modified dates matter more than frequency.
Can an XML sitemap hurt SEO?
A sitemap can't directly hurt rankings, but a messy one wastes crawl effort and sends mixed signals. Listing redirected, noindexed or duplicate URLs tells Google you want pages indexed that you've also told it to skip. Search Console then fills with warnings that hide real problems. A clean sitemap of canonical pages avoids that.
Do AI search engines use XML sitemaps?
Some AI crawlers may read sitemaps, but most AI answers draw on search indexes like Google's and Bing's, which do use them. So a clean sitemap helps AI visibility indirectly by getting your pages indexed. What matters more for AI engines is that the pages themselves are server-rendered and answer questions clearly.

· CEO & Design Director

Copywriter, designer and developer, and founder of Designify Studio. Over five years, 60+ projects across 14+ industries, for startups that have raised $300M+.

Want this done for you? Website, $8,000.

A multi-page marketing site, designed by us, developed in Next.js and animated. $8,000, one-time, up to 6 pages. Book a free 30-minute call to see if it fits.

Schedule Call