Products SEO & GEO Agent Paid Ads Agent Website Agent Conversion Agent
How it works Pricing FAQ Blog Book a call

Create a Sitemap: Build XML and HTML Sitemaps Step by Step

Updated · 7 min read

Short answer Most website builders already make your XML sitemap. Type yoursite.com/sitemap.xml (or /wp-sitemap.xml on WordPress) into a browser; if a list of links loads, it exists. WordPress, Wix, Squarespace, Shopify and Webflow all generate one. Only a hand-coded site needs one built: a short text file of page addresses, saved at the site root.

Want help applying this to your business? Talk it through on a free 30-minute call.

Book a call

How do I create a sitemap?

First, check whether you already have one. An XML sitemap is a file that lists your page addresses so search engines can find them. Most site builders make it for you. Google's own guide says that on WordPress, Wix or Blogger, "it's likely that your CMS has already made a sitemap available to search engines" (Google Search Central: Build and submit a sitemap). A CMS (content management system) is the software you edit your site in.

Type your domain plus `/sitemap.xml` into a browser. A page full of links means it exists. Then follow your platform's row:

Your site runs onSitemap made for you?Where it livesWhat you do
WordPress (no SEO plugin)Yes, since version 5.5`/wp-sitemap.xml`Nothing, unless search engines are discouraged (below)
WordPress with Yoast or Rank MathYes, by the pluginThe plugin's sitemap linkTurn it on in the plugin; keep one sitemap source
WixYes`/sitemap.xml`Finish the SEO Setup Checklist; Wix submits it to Google
SquarespaceYes`/sitemap.xml`Keep the site public
ShopifyYes`/sitemap.xml`Take the store out of private mode
WebflowWhen switched on`/sitemap.xml`Turn on Auto-generate sitemap, then publish
Hand-coded siteNoWherever you upload itBuild it (below)

Do you need one at all? Google says a site of "about 500 pages or fewer" with good internal links may not (Google Search Central: Learn about sitemaps). On a builder it costs nothing to keep.

How do I make a sitemap in WordPress?

WordPress has made one by itself since version 5.5, at `/wp-sitemap.xml`. It covers your pages, posts, categories, author pages and home page, and WordPress lists it in its robots.txt file (Make WordPress Core: New XML Sitemaps Functionality in WordPress 5.5).

One trap: if Settings > Reading > Search engine visibility is ticked to discourage search engines, the sitemap goes too. The WordPress team's note says that in that case "sitemaps will be disabled" (same page). Sites built on a staging copy often launch with that box still ticked.

With an SEO plugin, the plugin's sitemap usually replaces the built-in one:

  • Yoast SEO: go to Yoast SEO > Settings > Site features, and under Technical SEO switch XML sitemaps on. Click "View the XML sitemap" to get its address. Yoast asks you to turn off other sitemap plugins first, and post types set to noindex stay out (Yoast: Using the XML sitemaps).
  • Rank Math: open Sitemap Settings in its menu. Its sitemap index sits at `/sitemap_index.xml` (Rank Math: How to configure sitemaps).

Use one sitemap source. Two plugins making two sitemaps send Google mixed lists.

How do I make a sitemap on Wix, Squarespace, Shopify or Webflow?

You don't build it. You check it loads and fix the setting that hides it.

  • Wix updates the file "whenever you make changes to your site," and after you finish the SEO Setup Checklist, "Wix automatically submits your sitemap index to Google for you" (Wix Help: Understanding your site's sitemap file). Changing a page's canonical tag can drop that page from the list (same page).
  • Squarespace "automatically generates a list of your site's URLs and image metadata." Changes usually show within an hour, up to 24 hours. A private or password-protected site needs to be set to Public for the sitemap to load (Squarespace Help: View your site map).
  • Shopify says "Sitemap files are generated automatically." The file links to separate lists for products, collections, blogs and pages, and updates when you add any of them. Google can't read it while the store is in private mode (Shopify Help: Finding and submitting your sitemap).
  • Webflow needs one switch: Site settings > SEO tab > Sitemap section, set Auto-generate sitemap to Yes, save, then publish. It updates on every publish and is added to robots.txt for you, so don't add it there again (Webflow Help: Create a sitemap in Webflow, archived June 9, 2026).

How do I create an XML sitemap by hand?

Only a hand-coded site, or a builder that makes none, needs this. Google says a sitemap of under "a few dozen URLs" can be written by hand in a text editor such as Notepad (Google Search Central: Build and submit a sitemap). Copy the basic example on that page and swap in your own pages. In plain words, the file holds:

  1. A first line declaring XML and UTF-8.
  2. An opening urlset tag naming the sitemaps.org list format (http://www.sitemaps.org/schemas/sitemap/0.9).
  3. One url block per page, holding loc (the page's full address, such as https://www.example.com/drain-cleaning/) and, if you want, lastmod (the date it last changed, such as 2026-10-15).
  4. A closing urlset tag.

Rules from the same Google page:

  1. List full addresses, with `https://` and the exact domain version visitors land on (www or not).
  2. List only the version you want shown. Google calls these the canonical URLs: if one page opens at two addresses, list the one you prefer.
  3. Save as UTF-8 (the default text encoding in most editors), and name it `sitemap.xml`.
  4. Upload it to the site root, so it opens at `yoursite.com/sitemap.xml`. Google recommends the root because a sitemap there can cover every page.
  5. Skip priority and changefreq. Google says it ignores both. Use lastmod only for real content changes; Google uses it if it's "consistently and verifiably" accurate.
  6. Stay under the limit: 50,000 URLs or 50MB per file. A small business won't come close.

Even simpler: a `.txt` file with one full address per line also works, as long as it holds nothing but URLs (same page).

Past a few dozen pages, have your site's code or a generator write the file. Google says "the best way is to have your website software generate it for you" (same page), so it stays current as pages change.

How do I create an HTML sitemap?

An HTML sitemap is an ordinary page on your site that lists links to your main pages, for people rather than robots. Build it like any other page:

  1. Create a page called "Sitemap" or "All pages".
  2. Group links under plain headings: Services, Areas served, About, Contact.
  3. Link each service and city page by its name.
  4. Put a link to it in your footer.

Few builders make one for you, and none of the platform help pages above require it. It's most useful when your menu can't show every service page. Search engines get their list from the XML file, so a visitor page is optional.

What should I do after creating a sitemap?

Tell Google where it is, two ways:

  • Add one line to robots.txt (a small file at your site's root that crawlers read first): `Sitemap: https://www.example.com/sitemap.xml`. Google says it will "find it the next time we crawl your robots.txt file" (Google Search Central: Build and submit a sitemap). WordPress and Webflow add this line for you.
  • Submit it in Google Search Console (Google's free site report). Paste the address into the Sitemaps report's "Add a new sitemap" box and click Submit; you need owner permission on the property (Search Console Help: Manage your sitemaps, archived Nov 9, 2026).

Don't expect instant results. Google says "submitting a sitemap is merely a hint" and doesn't promise a crawl (Google Search Central: Build and submit a sitemap). A sitemap helps Google find pages; whether they get indexed depends on the pages.

Example

A plumber on WordPress

`/wp-sitemap.xml` shows a blank error page. In Settings > Reading, "Discourage search engines" is still ticked from the build. Unticking it brings the sitemap back. Next step: submit the address in Search Console.

A salon on Squarespace

`/sitemap.xml` won't load because the site is still password-protected before launch. After setting the site to Public, the 12-page sitemap appears within the hour. Nothing to build.

A hand-coded site for an accountant

Eight pages, no CMS. The owner writes an eight-entry `sitemap.xml` in Notepad from Google's example, uploads it to the root, adds the robots.txt line and submits it once. Ten minutes of work, redone only when a page is added.

FAQ

Is a sitemap generator website worth using?

For a small hand-coded site, yes: it crawls your pages and writes the file. Check the output, delete thank-you pages and duplicates, and rerun it whenever you add a page.

Can I edit the sitemap my builder makes?

Mostly no. Squarespace says you can't; Wix and Shopify offer no way. Webflow lets you paste a custom sitemap in place of its own.

Should I list every page?

List pages you want found in search: home, services, city pages, blog posts. Leave out login, cart, thank-you pages and duplicate addresses.

Does an HTML sitemap help SEO?

Its main job is helping visitors. Its links can lead crawlers to pages your menu misses, but on a small, well-linked site it adds little. Search engines read the XML file for their list.

Different for you?

Keep learning

NextSubmit a sitemap to Google and Bing, step by stepHow to submit a sitemap in Google Search Console and Bing Webmaster Tools, add it to robots.txt, read its status, and know when to resubmit.

Do it yourself

Crawlability checklist: make every page reachable by GoogleA crawlability checklist for a small business site: find orphan pages, robots.txt blocks, broken links, redirect chains and server errors, with free tools.

Ask us one question

One line is enough. We reply by email.

Sources

  1. Google Search Central: Build and submit a sitemap
  2. Google Search Central: Learn about sitemaps
  3. Make WordPress Core: New XML Sitemaps Functionality in WordPress 5.5
  4. Yoast: Using the XML sitemaps in the Yoast SEO plugin
  5. Rank Math: How to configure sitemaps
  6. Wix Help: Understanding your site's sitemap file
  7. Squarespace Help: View your site map
  8. Shopify Help: Finding and submitting your sitemap
  9. Webflow Help: Create a sitemap in Webflow (archived June 9, 2026)
  10. Search Console Help: Manage your sitemaps using the Sitemaps report (archived Nov 9, 2026)