XML Sitemap Generator & Validator · Tutorial
How to create a sitemap.xml for a small website
6 min readbeginnerUpdated
Your site is a handful of pages and a blog, built without a CMS that makes a sitemap for you. You will list the pages, generate the file and publish it so search engines can find every page.
What you need
- The Sitemap Generator
- A list of your pages
- Access to upload files to your site
Steps
List the pages
Load the example. Lines can be full URLs or paths; Base URL completes the paths. Two blog posts carry their publish dates.
Check the notes
The example lists
/about/twice, so one duplicate is removed. The count shows how many URLs made it into the file.Choose extras
weeklyis set as the change frequency. Leave Last modified empty unless the date is accurate for every page.<url> <loc>https://example.com/blog/how-we-ship-faster</loc> <lastmod>2026-10-14</lastmod> <changefreq>weekly</changefreq> </url>Publish
Download
sitemap.xml, upload it to your site’s root and add the Sitemap line to robots.txt.Sitemap: https://example.com/sitemap.xml
Try it yourself
Opens the XML Sitemap Generator & Validator with this tutorial's sample loaded.
Common mistakes
- Listing pages search engines can’t index
- Pages blocked in robots.txt or marked noindex shouldn’t be in the sitemap; the mixed signals waste crawling.
- Forgetting to update it
- Regenerate the sitemap when you add pages, or the new pages may be found late.
Next steps
Go back to the XML Sitemap Generator & Validator, or keep going with one of these: