Small tasks. A little easier.157 tools · No account required

Find your next tool

Search all 157 tools and their practical guides.

SEO

A sitemap.xml example for a small website

Build a two-page XML sitemap, check its public URLs, and see how to submit it in Google Search Console.

ERITHRA editorial4 min read
Two canonical pages · / and /guide → sitemap.xml · https://example.com/ · https://example.com/guide.
Map the homepage and one public guideList the public version of each page and check both addresses before submitting the sitemap.

An XML sitemap lists URLs you want search engines to discover. Start with the public version of each page that you would want someone to land on from search. For a small website, that can be as simple as the homepage and one guide.

Copy this two-page example

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url><loc>https://example.com/</loc></url>
  <url><loc>https://example.com/guides/photo-sizes/</loc></url>
</urlset>

Replace the example URLs with your own, or paste one absolute URL per line into the XML Sitemap Generator and download the XML. The generator deduplicates normalized URLs and escapes XML characters such as &. It works with one origin at a time.

Check each URL before uploading

If you find Do this
A URL that redirects to another address List the final canonical URL.
Both www and non-www copies of one page Use the hostname that matches your site’s canonical URLs.
A tracking URL with campaign tags List the clean canonical address.
A private, deleted, or noindex page Leave it out and keep only the pages meant for search.

You can leave out lastmod for a simple sitemap. If you add it, use a date that reflects a significant change to that page. Google ignores the priority and changefreq values. Google’s sitemap guidance

Publish it and check what Google reads

Place the file at a public URL such as https://example.com/sitemap.xml. Open it in a private window and check that you receive XML without needing a login. In Search Console, select the property for the site and submit the public address under Sitemaps. You can also add a Sitemap: https://example.com/sitemap.xml line to your public robots.txt.

A successful sitemap status means Google could read the file. For an individual page, check URL Inspection to see whether Google has indexed it and which canonical URL it selected. If your site already generates a sitemap index, submit that index so new pages can appear automatically as your site builds.

sitemap.xmlSearch Consoleindexingcanonical URLs

Put it into practice

Keep reading