How to make an XML sitemap for your small business website

An XML sitemap is a file that lists every important page on your website and tells search engines where to find them. To make one, use a plugin like Yoast SEO (WordPress) or an online generator, then submit it to Google Search Console. Most small business sites need one file covering under 50,000 URLs.
Key takeaways
An XML sitemap is a structured file, usually found at yourdomain.com/sitemap.xml, that helps Google and Bing discover and index your pages faster.
WordPress sites can generate one automatically using Yoast SEO or Rank Math; non-WordPress sites can use free tools like XML-Sitemaps.com.
Submitting your sitemap to Google Search Console is a separate step from creating it, and it is the step most small businesses skip.
A sitemap does not guarantee ranking; it tells search engines your pages exist, but quality and relevance decide whether those pages rank.
Pages you deliberately exclude from search (thin content, duplicate pages, thank-you pages) should also be excluded from your sitemap.
What does an XML sitemap actually do?
An XML sitemap is a file written in a specific markup language that search engines read directly. It lists your pages alongside optional signals: when a page was last updated, how often it changes, and its relative priority within the site.
Search engine crawlers already discover pages by following links, so a sitemap is not a magic switch. What it does is close the gaps. If a page has no internal links pointing to it, a crawler may never reach it. Your sitemap acts as a direct route, making sure nothing important is invisible.
How to build an XML sitemap: step by step
The process differs slightly depending on how your site is built, but the logic is the same: generate the file, check it, then tell Google it exists.
Identify your platform. WordPress, Squarespace, Wix and Shopify all handle sitemaps differently. Knowing your platform determines which method is fastest.
Generate the sitemap. On WordPress, install Yoast SEO or Rank Math. Both generate a sitemap automatically at yourdomain.com/sitemap.xml the moment they are activated. On Squarespace or Wix, a sitemap is created automatically and requires no action. On a bespoke or static site, use a free generator such as XML-Sitemaps.com, which crawls up to 500 pages at no cost and produces a downloadable file.
Upload the file (if needed). If you used an online generator, upload the sitemap.xml file to the root directory of your server, so it sits at yourdomain.com/sitemap.xml.
Check the file opens. Paste your sitemap URL into a browser. You should see structured XML code listing your pages. If the page is blank or returns an error, something went wrong in the upload or plugin configuration.
Submit to Google Search Console. Log in to Google Search Console, select your property, navigate to Sitemaps under the Index menu, paste the sitemap URL, and click Submit. Google will confirm receipt and begin processing.
Submit to Bing Webmaster Tools. Repeat the same step inside Bing's equivalent dashboard. Bing powers searches across its own engine and several partners, so this step is worth two minutes of your time.
What does a sitemap XML file look like?
A basic sitemap follows a consistent structure. Each page sits inside a <url> tag, and the file opens with an XML declaration and a <urlset> tag that references the sitemap protocol.
A minimal entry looks like this:
The <loc> tag is the only mandatory element. <lastmod>, <changefreq> and <priority> are optional hints. Google has stated publicly that it treats <priority> and <changefreq> as weak signals at best, so do not spend time fine-tuning them. Accurate <lastmod> dates are more useful because they help Google decide when to re-crawl updated content.
Which pages should and should not go in your sitemap?
Include | Exclude |
Main service and product pages | Thank-you and confirmation pages |
Blog posts and articles | Admin and login pages |
Category and location pages | Pages with a noindex tag |
Your homepage and about page | Duplicate or near-duplicate pages |
Contact page | Low-quality or thin content pages |
The principle is simple: if you would not want a page to appear in search results, it should not be in your sitemap. Including weak pages signals to Google that you consider them important, which can dilute the authority of the pages you actually care about.
This connects to a point we make in our article on why sitemaps matter to search engine crawlers: a sitemap is a declaration of intent. Use it to declare only your best pages.
When does a small business actually need a sitemap?
Most small business websites benefit from a sitemap, but the urgency varies.
You need one immediately if your site is newly launched, has pages with few or no internal links, or has recently restructured its URLs. In those cases, a sitemap gives Google its clearest possible signal about what exists and where.
You need one less urgently if your site is small (under 20 pages), well-linked, and has been indexed for years. Google will likely find everything without it. That said, generating and submitting a sitemap takes under 30 minutes, so the question is rarely whether to bother.
If you are working with a digital marketing agency on your SEO, sitemap submission should be one of the first technical checks on the list, not an afterthought.
Frequently Asked Questions
Is a free XML sitemap generator good enough for a small business website? For most small business sites, yes. Tools like XML-Sitemaps.com handle sites up to 500 pages at no cost and produce a correctly formatted file. If your site has more pages than that, or changes frequently, a CMS plugin or server-side solution is more reliable because it updates automatically.
How often should I update my sitemap? Every time you add, remove or significantly change a page. If your sitemap is generated by a plugin like Yoast SEO, this happens automatically. If you created it manually using an online tool, regenerate and resubmit it whenever your site structure changes.
Does having a sitemap improve my Google rankings directly? No. A sitemap helps Google discover your pages; it does not influence how those pages are ranked. Ranking depends on content quality, relevance, page experience and backlinks. Think of the sitemap as ensuring your pages are in the race, not ensuring they win it.
Can I have more than one sitemap? Yes. Larger sites often use a sitemap index file that points to separate sitemaps for different content types, for example one for service pages and one for blog posts. For most small business websites a single sitemap file is sufficient.
What happens if my sitemap contains errors? Google Search Console will flag errors in the Sitemaps report, including unreachable URLs, pages with noindex tags and malformed entries. Review the report after submission and fix any flagged issues. Errors do not cause penalties, but unresolved ones mean some pages may not be discovered or crawled as efficiently as they could be.
Written by the Revolve team, a UK digital marketing agency delivering SEO, AEO and paid advertising for small and mid-sized businesses. Last updated: 29 September 2026
By Sam White
Need expert support on search, paid media or measurement?
Get in Touch →