A sitemap is a file that lists every page on your website so search engines can find, crawl, and index them. For website owners, it is one of the simplest ways to make sure Google knows about all your pages.
Most business websites have dozens or hundreds of pages, and not all of them are easy for Google to discover through links alone. A sitemap fills that gap by giving search engines a direct list of URLs to check.
This guide covers the different types of sitemaps, how they work, how to create and submit one, and what to leave out. Whether you manage your own web design or work with a professional, understanding sitemaps will help your site get found.
What is a Sitemap?
A sitemap is a structured file (usually XML) that lists the URLs on your website along with metadata about each page. If you are still getting your head around what a website actually is and how it works, that is worth reading first. That metadata can include when the page was last updated, how frequently it changes, and its relationship to other pages on the site.
Search engines like Google use sitemaps as a discovery tool. When Googlebot crawls your site, it follows links between pages, but some pages may be orphaned or buried deep in your site structure. A sitemap ensures those pages are still found.
Sitemaps were originally designed as HTML pages to help visitors navigate large websites. The XML version, introduced by Google in 2005, shifted the focus to search engine crawling. Both types still exist and serve different purposes.
Types of Sitemaps
There are several sitemap formats, each built for a different audience or content type.
XML Sitemaps
XML sitemaps are the standard for search engines. They are machine-readable files that list your URLs inside a structured tag format. The required tags are <urlset>, <url>, and <loc> (the page URL).
Optional tags include <lastmod> (last modified date), <changefreq>, and <priority>.
Google has confirmed it ignores <changefreq> and <priority> entirely. The only optional tag worth maintaining is <lastmod>.
XML sitemaps are most useful when:
- Your website has hundreds of pages or more
- Your site structure is complex with deep page hierarchies
- You have weak internal linking and some pages are hard to reach
- You publish new content frequently and want it indexed quickly
HTML Sitemaps
HTML sitemaps are regular web pages designed for human visitors. They display your site structure as a clickable list of links, grouped by category or section. Think of them as a table of contents for your website.
You will often find HTML sitemaps linked from a site’s footer. They are particularly helpful for large or content-heavy websites where visitors might struggle to find specific pages through the main navigation alone.
Visual Sitemaps
Visual sitemaps are planning documents used during the web design process. They map out page hierarchy, navigation flow, and content relationships using flowchart-style diagrams before any code is written.
These are not files you submit to Google. They are internal tools that help designers and clients agree on site structure before building starts.
Image and Video Sitemaps
If your site relies heavily on images or video, specialised sitemap extensions can help Google discover that media. Image sitemap entries are added within your existing XML sitemap using the <image:image> tag. Video sitemaps use a similar approach with <video:video> tags.
For most small business websites, a standard XML sitemap is enough. Image and video sitemaps become worthwhile when visual content is a core part of your offering, such as a photography portfolio or a video production company.
Why Sitemaps Matter for SEO
Search engines have a limited crawl budget for each website. That means Googlebot will only crawl a certain number of pages per visit. A sitemap helps search engines spend that budget on the pages that matter.
Without a sitemap, Google relies entirely on following links between your pages. If a page has no internal links pointing to it, Google may never find it.
Submitting a sitemap to Google Search Console also gives you reporting data. You can see how many of your submitted URLs have been indexed, and identify any errors that prevent indexing.
The <lastmod> tag signals when a page was last changed. If Google sees a recent modification date, it may prioritise re-crawling that page sooner. This is useful after updating an existing article or running an SEO campaign with fresh content.
When You Specifically Need a Sitemap
Not every website needs a sitemap, but most benefit from one. According to Google’s own documentation, sitemaps are especially important when:
- Your site has 500 or more pages
- Pages are not well linked internally
- Your site is new and has few external backlinks
- You use rich media (images, video) that you want indexed
Small sites with strong internal linking may be crawled thoroughly without a sitemap. But even then, submitting one does no harm and gives you the Search Console reporting benefits.
How to Create a Sitemap
The method you use depends on your platform and technical comfort level.
Using WordPress Plugins
If your site runs on WordPress, SEO plugins like Rank Math and Yoast SEO generate XML sitemaps automatically. Rank Math creates a sitemap index at /sitemap_index.xml that links to separate sitemaps for posts, pages, and any custom post types you have registered.
No manual file creation is needed. The plugin updates the sitemap whenever you publish, update, or delete a page.
Online Sitemap Generators
For non-WordPress sites, online generators like XML-Sitemaps.com or Screaming Frog can crawl your site and produce a sitemap file. You then upload that file to your site’s root directory.
The downside of generators is that the sitemap does not update automatically. You need to re-run the generator and re-upload the file whenever your site changes.
Manual Creation
For very small sites (under 20 pages), you can write an XML sitemap by hand in a text editor. The structure is straightforward:
- Open with
<urlset> - Wrap each page URL in
<url>and<loc>tags - Optionally add
<lastmod>dates - Close with
</urlset>
This approach does not scale. Once your site grows beyond a handful of pages, switch to an automated solution.
How to Submit Your Sitemap to Google
Creating a sitemap is only half the job. You also need to tell Google where to find it.
Google Search Console
The most direct method is through Google Search Console. Log in, select your property, click “Sitemaps” in the left sidebar, and enter the URL of your sitemap (usually /sitemap_index.xml or /sitemap.xml). Click Submit.
Google will begin processing it and report back on any errors. You can check the status any time under the Sitemaps section.
Adding Your Sitemap to robots.txt
You can also reference your sitemap in your site’s robots.txt file by adding a single line:
Sitemap: https://yoursite.com.au/sitemap_index.xml
This tells any search engine that reads your robots.txt file where to find the sitemap, without needing to submit it manually through each search engine’s console.
What to Exclude from Your Sitemap
A sitemap should only contain URLs you want search engines to index. Including low-value or duplicate pages wastes crawl budget and can dilute your site’s authority.
Pages to leave out of your sitemap:
- Pages with a
noindextag (these contradict being in a sitemap) - Redirected URLs (include only the final destination URL)
- 404 error pages
- Duplicate content or non-canonical URLs
- Tag and author archive pages with thin content
- Admin, login, and cart pages
If you are using Rank Math or Yoast SEO on WordPress, both plugins automatically exclude noindex pages from the generated sitemap.
Sitemap Best Practices
A few rules will keep your sitemap working properly over time.
- Keep each sitemap file under 50,000 URLs and 50MB uncompressed. If you exceed either limit, split into multiple sitemaps linked from a sitemap index file.
- Use fully qualified, absolute URLs (e.g.
https://yoursite.com.au/page/, not/page/). - Only include canonical URLs. If two URLs serve the same content, include the canonical version only.
- Set accurate
<lastmod>dates. Do not update the date unless the page content has genuinely changed. - Check your sitemap in Google Search Console regularly for coverage errors.
Your sitemap reflects your site structure. If the sitemap is messy, with broken links, redirected URLs, or pages you do not want indexed, it is worth auditing your overall website structure first.
Frequently Asked Questions
Does every website need a sitemap?
Not technically, but most websites benefit from one. Small sites with strong internal linking can be crawled without a sitemap. For business websites with more than a handful of pages, it is worth setting up.
How do I find a website’s sitemap?
Add /sitemap.xml or /sitemap_index.xml to the end of any website URL. Most sites that have a sitemap will serve it from one of those paths.
Will a sitemap fix my SEO problems?
No. A sitemap helps search engines find your pages, but it does not improve the quality of your content or fix technical issues. It is one part of a broader SEO strategy.
How often should I update my sitemap?
If you use a WordPress SEO plugin like Rank Math, the sitemap updates automatically whenever you publish or edit a page. If you manage your sitemap manually, regenerate it each time you add, remove, or substantially change pages.
What is the difference between an XML sitemap and an HTML sitemap?
An XML sitemap is a machine-readable file for search engines. An HTML sitemap is a visible web page for human visitors that lists your site’s pages as clickable links.
Can a sitemap hurt my rankings?
A properly maintained sitemap will not hurt your rankings. Problems only arise if you include URLs you do not want indexed (like noindex pages or duplicate content), which can confuse search engines about what matters on your site.
Conclusion
A sitemap connects your content to search engines. Without one, pages that are poorly linked or recently published may sit unindexed for weeks.
For WordPress sites, setting up a sitemap takes minutes with a plugin like Rank Math. Submit it to Google Search Console, keep it clean by excluding low-value pages, and check it periodically for errors.
If you are not sure whether your sitemap is set up correctly, or if your site has broader SEO issues that need attention, get in touch with KC Web Design for a website audit. A well-maintained sitemap is a small step that supports everything else in your ongoing website management.