What a site map is and why you need one
A site map is a file or page that lists the structure and content of your website in a way that both search engines and visitors can understand. It serves two separate purposes: an XML site map helps search engines like Google crawl and index your pages more efficiently, while an HTML site map gives visitors a visual guide to your site's organization.
You need a site map because search engines cannot always find every page on your site through links alone, especially if your site is large, new, or has pages that are not well-connected to each other. An XML site map tells Google and other search engines exactly which pages exist, when they were last updated, and how important each page is relative to others. An HTML site map helps real people navigate your site when they cannot find what they are looking for through your menu.
Most sites benefit from having both types. The XML version is required only if your site has more than a few hundred pages or if you have pages that are difficult to reach through normal navigation, but creating one takes only a few minutes and costs nothing.
Key Takeaways
- An XML site map is a file you submit to Google Search Console that lists every page on your site; an HTML site map is a webpage visitors can browse.
- You can create an XML site map manually in a text editor, use a free online generator, or use a plugin if your site runs on WordPress or another platform.
- After creating your XML site map, you must submit it to Google Search Console and Bing Webmaster Tools so search engines know where to find it.
- An HTML site map should list your main categories and pages in a logical order that matches your site's navigation structure.
- Update your XML site map whenever you add or remove pages, or set it to update automatically if you use a plugin or generator.
Creating an XML site map manually
An XML site map is a text file written in a specific format that search engines recognize. You can create one yourself using any text editor — Notepad on Windows or TextEdit on Mac will work. The file must start with <?xml version="1.0" encoding="UTF-8"?> and then list each page of your site inside <url> tags.
Here is the basic structure: each page gets its own <url> block containing the page's web address (the <loc> tag), the date it was last updated (the <lastmod> tag), how often it changes (the <changefreq> tag), and its importance relative to other pages (the <priority> tag). For example, your homepage might have a priority of 1.0, while a blog post might have 0.7. The <changefreq> can be "daily", "weekly", "monthly", or "never".
Save the file as sitemap.xml in the root directory of your website — the main folder where your homepage lives. This is the location search engines expect to find it. If you have fewer than 50,000 pages and your file is smaller than 50 megabytes, one file is enough. Larger sites need to split the site map into multiple files and create an index file that lists them all.
Using a site map generator
If writing XML by hand sounds tedious, free online generators can create an XML site map for you in seconds. Tools like XML-Sitemaps.com, Screaming Frog SEO Spider, and SmallSEOTools all work the same way: you enter your website's URL, the tool crawls your site, and it generates a complete XML site map that you can download.
To use an online generator, visit the tool's website, paste your domain name into the input field, and click the button to start crawling. The tool will visit every page it can reach through links on your site and build a list. Once it finishes, you can download the sitemap.xml file and upload it to your website's root directory using FTP or your hosting provider's file manager.
The advantage of a generator is speed and accuracy — it finds pages you might forget to list manually. The disadvantage is that you have to re-run it every time you add or remove pages. Some generators offer paid plans that crawl your site automatically on a schedule, but for most small sites, running the tool once a month takes only a few minutes.
Using a plugin or built-in site map feature
If your site runs on WordPress, Wix, Squarespace, or another platform, you likely have a built-in site map feature or a plugin that creates one for you automatically. WordPress sites can use free plugins like Yoast SEO, RankMath, or Google XML Sitemaps, which generate and update your XML site map every time you publish or update a page.
To set up a plugin on WordPress, go to Plugins > Add New, search for the plugin by name, click Install Now, then Activate. Most plugins create your site map automatically and place it at yoursite.com/sitemap.xml. You can verify this by visiting that URL in your browser — if the site map exists, you will see XML code instead of an error message.
Wix and Squarespace generate site maps automatically without any action on your part. You can find the URL in your site's settings or SEO tools section. Shopify sites also get automatic site maps. Check your platform's documentation or settings to confirm where your site map is located and whether it is being updated automatically.
Submitting your site map to search engines
Creating a site map does not automatically tell search engines about it. You must submit it to Google Search Console and Bing Webmaster Tools so they know where to find it. Both services are free and take only a few minutes to set up.
For Google, go to Google Search Console, select your property (your website), click Sitemaps in the left menu, and paste your site map URL into the input field. Google will fetch the file and start processing it within a few hours. You can check the status in Search Console to see how many pages Google found and whether there were any errors.
For Bing, go to Bing Webmaster Tools, sign in with your Microsoft account, select your site, click Sitemaps in the left menu, and submit your site map URL the same way. Bing processes site maps more slowly than Google, but submitting takes the same few minutes.
Creating an HTML site map for visitors
An HTML site map is a regular webpage on your site that lists your main categories and pages in an organized way. Unlike an XML site map, which is for search engines, an HTML site map is for people who get lost or want to see everything your site offers at a glance.
To create one, make a new page on your site called "Site Map" or "Sitemap" and organize your content into sections that match your main navigation. Use headings for categories and bullet points or links for individual pages. For example, if you run a blog about cooking, your HTML site map might have sections for Recipes, Techniques, Equipment, and About, with links to your most important pages under each.
Keep the HTML site map simple and scannable. Do not list every single page if you have hundreds — focus on main categories and the pages visitors are most likely to look for. Add a link to your HTML site map in your footer or main menu so visitors can find it easily. You do not need to submit an HTML site map to search engines; it is purely for human visitors.
Keeping your site map up to date
If you created your site map manually or with a generator, you need to update it whenever you add, remove, or significantly change a page. Set a reminder to re-run your generator or manually edit your XML file once a month, or more often if you publish content frequently.
If you use a plugin or your platform's built-in site map feature, updates happen automatically — you do not need to do anything. Check Google Search Console occasionally to make sure Google is still finding and indexing your pages. If you notice that new pages are not appearing in search results after a few weeks, re-submit your site map to Google to force it to re-crawl.
For your HTML site map, update it whenever you add a major new section or remove old content. Unlike the XML version, it does not need to be perfect or complete — it just needs to help visitors find what they are looking for.
Frequently Asked Questions
Do I need both an XML and HTML site map?
No. An XML site map is for search engines and is the priority — most sites need only that. An HTML site map is optional and helps visitors navigate. Small sites with simple navigation may not need an HTML site map at all, but larger sites with many pages benefit from having one.
What if my site map is too large to fit in one file?
XML site maps are limited to 50,000 URLs and 50 megabytes per file. If your site is larger, create multiple site map files and an index file that lists them all. Most generators handle this automatically. Name them sitemap1.xml, sitemap2.xml, and so on, then create a sitemap_index.xml file that references each one.
How long does it take Google to index my site after I submit a site map?
Google usually processes a site map within a few hours, but indexing all the pages can take days or weeks depending on your site's size and how often Google crawls it. You can monitor progress in Google Search Console under the Coverage report, which shows how many pages have been indexed and whether there are any errors.
Can I use the same site map for multiple websites?
No. Each website needs its own site map with its own domain name in the URLs. If you run multiple sites, create a separate site map for each one and submit each to Google Search Console and Bing Webmaster Tools separately.
What if I delete a page — do I need to remove it from my site map?
Yes. Remove deleted pages from your XML site map so search engines know they no longer exist. If you leave them in the site map, Google may keep trying to crawl them and report errors in Search Console. Update your site map within a few days of deleting a page.