What Is a Sitemap? XML and HTML Sitemaps, What They Do and How to Submit One
A sitemap is a file that lists the pages on your website you want search engines to find, so they can crawl the site more efficiently. An XML sitemap is read by search engines, an HTML sitemap is a page for visitors. A sitemap helps discovery, but it does not ensure that anything is indexed or ranked.
Prabhu SolutionsPublished 24 October 2026Last reviewed 24 October 202614 min read
On this page
- What is a sitemap?
- What does a sitemap look like?
- Which parts of a sitemap entry does Google use?
- What does a sitemap do, and what does it not do?
- What is the difference between an XML sitemap and an HTML sitemap?
- Does your website need a sitemap?
- What should a sitemap include, and what should it leave out?
- How do sitemaps relate to canonical tags and redirects?
- What we found on our own site
- How do you create a sitemap?
- How do you submit a sitemap in Google Search Console?
- What do the sitemap statuses in Search Console mean?
- What are the most common sitemap mistakes?
- What should you do when pages in your sitemap are not indexed?
- Who should look after your sitemap?
- Sources
What is a sitemap?
A sitemap is a file that lists the pages, videos and other files on your website that you want search engines to know about. Google describes it as a file where you provide information about the pages on your site, and it helps crawlers find them more efficiently. It is a list of suggestions, not a set of instructions.
The word covers three different things. An XML sitemap is a machine-readable file for search engines, an HTML sitemap is an ordinary page of links for visitors, and a visual sitemap is a diagram designers draw before a site exists. Only the first has a direct SEO purpose, and it is the one people usually mean.
This guide explains what an XML sitemap contains, what it does and does not do, whether your site needs one, how to submit it in Google Search Console and the mistakes that make a sitemap less useful than it should be. It is written for site owners, not developers. If you want an expert to look at your own site, technical SEO from Prabhu Solutions is the related service, and how SEO works gives the wider picture.
The point
If you want an expert to look at your own site, technical SEO from Prabhu Solutions is the related service, and how SEO works gives the wider picture.
What does a sitemap look like?
An XML sitemap looks like a plain text file in which each page gets a short entry. Every entry has a loc element holding the full address of the page, such as https://www.example.com/services/, and may have a lastmod element holding the date the page was last meaningfully changed. Entries sit inside a wrapper element called urlset.
You rarely write the file by hand, because your platform or a plugin generates it. Open it in a browser and you will see the list of addresses, usually with dates beside them. Google supports the sitemap formats defined by the sitemaps protocol: XML, RSS or Atom feeds, and plain text with one address per line, and says it has no preference among them. The file must be UTF-8 encoded and the addresses must be fully qualified and absolute, including the protocol and host.
Two practical limits apply. A single sitemap can hold no more than 50,000 addresses or 50MB uncompressed. Larger sites split the list across several sitemaps and add a sitemap index file that lists them, and the index is what you submit.
The point
A single sitemap can hold no more than 50,000 addresses or 50MB uncompressed.
Which parts of a sitemap entry does Google use?
Google reads the address in every entry and uses the last-modified date only when it is consistently and verifiably accurate. It ignores the priority and change-frequency values entirely. The table shows each element and what to do with it, so you can check what your own sitemap contains.
| Element | What it holds | How Google treats it | What to do |
|---|---|---|---|
| loc | The full address of the page, including https and the host. | Required. Google crawls the address as written. | List the exact final address that returns a normal page, matching the canonical. |
| lastmod | The date of the last significant update to the page. | Used if it is consistently and verifiably accurate. A change to a copyright year does not count. | Update it when main content, structured data or links really change. Never stamp every page with today's date. |
| priority | A 0 to 1 hint of importance. | Ignored by Google. | Leave out or ignore. |
| changefreq | How often you say a page changes. | Ignored by Google. | Leave out or ignore. |
| Sitemap index | A file that lists other sitemap files. | Optional. You can submit an index, or several sitemaps and indexes. | Use once a site passes the size limits, or to split by section. |
What does a sitemap do, and what does it not do?
A sitemap helps search engines discover and re-check the pages you list. It does not make Google crawl them, index them or rank them. Google says there is no promise that everything in a sitemap will be crawled and indexed, which is the single most important thing to understand about sitemaps.
| A sitemap does | A sitemap does not |
|---|---|
| Tell search engines which pages you consider important enough to list. | Make Google index a page. It only offers the address for consideration. |
| Help new or poorly linked pages get found, especially on new sites with few links from elsewhere. | Replace internal links. Google says every page you care about should be linked from at least one other page on your site. |
| Provide last-modified dates, which Google can use to decide what has changed, when they are accurate. | Improve rankings. It lists your page; it does not make the page better. |
| Carry extra information for video, images and news content on sites where that matters. | Fix a page that is blocked, thin, duplicate or broken. A listed bad page is still a bad page. |
| Give you a report in Search Console showing whether Google could read the file. | Hide pages. Leaving a page out does not keep it out of search, so use noindex or a login for that. |
What is the difference between an XML sitemap and an HTML sitemap?
An XML sitemap is a file for search engines and an HTML sitemap is a page of links for visitors. A third kind, the visual sitemap used in web design and UX, is a planning diagram of how a site's pages will be organised. They share a name and little else.
| Kind | Who it is for | What it is | SEO role |
|---|---|---|---|
| XML sitemap | Search engines | A machine-readable list of addresses, often at an address like /sitemap.xml, generated by your platform. | Supports discovery and recrawling. Submit it in Search Console. |
| HTML sitemap | Visitors, and incidentally crawlers | An ordinary web page linking to the main sections or all pages of the site. | Can help people find things and gives crawlers more internal links. Useful on large sites with awkward navigation, unnecessary on small ones. |
| Visual or UX sitemap | Designers, developers and clients | A diagram of the planned pages and how they connect, drawn before a build. It is part of information architecture, the wider job of organising content so people can find it. | None directly. It leads to a sound structure, which helps both visitors and search. |
| Video, image and news sitemaps | Search engines | Sitemap extensions that carry extra details for those content types. | Relevant only if such content is a large part of the site. |
Does your website need a sitemap?
Not always. Google says that if your pages are well linked it can usually find most of your site itself, and that sites of roughly 500 pages or fewer may not need one. A sitemap is more useful for large sites, new sites with few external links and sites with a lot of video, image or news content.
- Your site is new and few other sites link to it, so crawlers have fewer routes in.
- Your site is large, with thousands of pages, so some are not reached easily through links.
- Your site has many pages that change often, such as stock, jobs or listings, where recrawling matters.
- Your site has substantial video, image or news content that benefits from extra detail.
- You are about to migrate or redesign, where a clean sitemap of final addresses is part of checking the move. The SEO migration checklist shows where it fits, and website migration SEO is the service built around it.
- Your site is small and well linked, in which case a sitemap is harmless and takes little effort, but it will not be the thing that changes your results.
What should a sitemap include, and what should it leave out?
A sitemap should list only the final, canonical, indexable addresses that return a normal page, and leave out everything else. If a page redirects, returns an error, carries a noindex tag, is a duplicate or sits behind a login, it does not belong. A sitemap is a statement of what you want found.
- Include the pages that earn enquiries or answer real questions: service pages, guides, product and category pages that you want in search.
- Include the address in the exact form you have chosen as canonical: one protocol, one host, and one decision about the trailing slash.
- Leave out redirecting addresses. List the destination, not the old address that points to it.
- Leave out pages with a noindex tag. Listing them sends Google two opposite messages.
- Leave out error pages, test pages, staging copies and pages behind a login.
- Leave out duplicate or parameter versions of the same page, such as sorted or filtered lists, unless each is meant to be found.
- Leave out thin pages that exist only for navigation, such as bare tag archives or internal search results.
- Keep it current. New pages should appear and removed pages should disappear without anyone remembering to do it, which is why a generated sitemap is better than a hand-maintained one.
What we found on our own site
On its own site Prabhu found its sitemap and canonical tags named URLs without a trailing slash while the server redirected them to the slash version, which Search Console reports as redirects and duplicates; the fix was to make the canonical match the address that returns 200.
How do you create a sitemap?
Most websites generate a sitemap automatically, so the usual job is to find it, check it and fix the platform setting if it is wrong. Only very small or custom sites need one written by hand. Check your platform's own documentation to see whether it produces one and at what address.
- Check whether you already have one. Try adding /sitemap.xml to your domain, and look at your robots.txt file for a Sitemap line. Many platforms and SEO plugins generate one without being asked; the WordPress SEO checklist covers the usual WordPress settings.
- If you do not, use your content management system's built-in option or a generator that reads your live site, then check the output rather than trusting it.
- Open the file and read it. Are the addresses the final ones? Does it list pages you would never want found? Do the dates look honest?
- For a very small site, a plain text file with one full address per line is accepted by Google and is easy to maintain.
- For large sites, split by section (pages, guides, products) and use a sitemap index, keeping each file within the 50,000 address and 50MB limits.
- Place the file where Google can fetch it and make sure it is not blocked by robots.txt. Our robots.txt guide explains that file.
How do you submit a sitemap in Google Search Console?
Open the Sitemaps report in Search Console, enter the address of your sitemap and click Submit. You need owner permissions on the property, and the sitemap should be fetched straight away. Submitting offers the addresses to Google; it does not require Google to crawl or index them.
- Check you are an owner of the property. Google states that you must have owner permissions to submit a sitemap using the Sitemaps report.
- Post the sitemap on your site, at an address that returns the file with no login.
- Test that Google can fetch it by running a live inspection on the sitemap address in Search Console.
- In the Sitemaps report, paste the tested address into the Add a new sitemap box and click Submit.
- Wait for the status. The sitemap should be fetched immediately. If the status is not Success, click the row to see the details.
- Optionally, add a Sitemap line to robots.txt with the fully qualified address. Google supports multiple Sitemap lines.
- Compare the sitemap's addresses with the Page indexing report later. That comparison, not the submission, is where the useful information is.
What do the sitemap statuses in Search Console mean?
Search Console reports three statuses: Success, Has errors and Couldn't fetch. Success means the file was loaded and processed without errors, not that its pages are indexed. The other two mean the file needs fixing before Google can use it properly.
| Status | What Google means | What to do |
|---|---|---|
| Success | The sitemap was loaded and processed successfully with no errors. | Check the Page indexing report next. A successful sitemap says nothing about whether its pages are indexed. |
| Has errors | The sitemap could be fetched, but has one or more errors. | Open the row, read the error and fix the file at its source. Resubmit once corrected. |
| Couldn't fetch | The sitemap could not be fetched for some reason. | Check the address loads in a browser, is not blocked by robots.txt or a login, and returns the file. Google stops retrying a sitemap that keeps failing, so resubmit after fixing it. |
What are the most common sitemap mistakes?
The common sitemap mistakes are listing addresses that redirect, error or carry noindex, disagreeing with the canonical tag, leaving staging addresses in after launch, and stamping every page with a fresh date. They matter because each makes the file less trustworthy, and Google may then trust it less.
- Redirecting addresses. The sitemap names one form of the address and the server sends visitors to another. Fix the sitemap to list the destination.
- Disagreement with the canonical. The sitemap lists one address and the page says another is canonical.
- Wrong host or protocol. After a move to https or a change of domain, the sitemap still lists the old version.
- Staging or test addresses left in after launch. Add this to your launch checks.
- Noindex or blocked pages listed. Each contradicts the file that lists it.
- A last-modified date that changes on every build. Google uses the date only if it is consistently and verifiably accurate, so a date that is always today teaches Google to ignore it.
- One enormous file. Anything over 50,000 addresses or 50MB needs splitting.
- Treating the sitemap as the fix for a page that is not indexed. If a page is not indexed, find out why. Why a site is not indexed covers the usual causes.
- Deleting a sitemap to hide pages. Removing it from the report does not make Google forget the sitemap or its addresses, and you need robots.txt rules, noindex or removal of the pages to stop it visiting them.
What should you do when pages in your sitemap are not indexed?
Open the Page indexing report in Search Console and read the reason given for each excluded page, then fix that cause. A sitemap lists candidates; Google decides whether to index them. Common causes are duplicates, redirects, noindex tags, pages Google judged not worth indexing and addresses that return errors.
Work from the top: is the address the canonical one, does it return a normal page, is it linked from elsewhere on the site, and does it say something the rest of the site does not? Fix the cause rather than resubmitting the sitemap, because resubmitting changes nothing about the reason.
If the list of exclusions is long or confusing, a proper review is quicker than guessing. What a SEO audit includes explains how indexation is checked, and the cost side of getting one is covered in what an SEO audit costs in the UK.
The point
What a SEO audit includes explains how indexation is checked, and the cost side of getting one is covered in what an SEO audit costs in the UK.
Who should look after your sitemap?
Whoever looks after your website platform should own it, because it is generated there, and someone should check it after any redesign, migration or platform change. For most small sites that is a ten-minute check a few times a year. Specialist help is worth it for large sites, migrations and unexplained indexing problems.
If you are deciding whether you need an agency at all, do I need an SEO agency offers a short test, and how to choose an SEO agency lists the checks. A sitemap review is a small part of what technical SEO is.
Prabhu Solutions is registered in Oldbury, West Midlands, works with businesses across the UK and delivers remotely. If you would like someone to look at your sitemap and indexing, you can describe the site and the problem and we will say plainly whether it is worth doing. Businesses near Birmingham can read how remote delivery works for the area. Our wider SEO services start from the same checks.
The point
Prabhu Solutions is registered in Oldbury, West Midlands, works with businesses across the UK and delivers remotely.
Sources
Statements about Google's behaviour in this article come from Google's own documentation. The note about our own site is a first-hand observation and carries no dates or figures.
- Google Search Central, Learn about sitemaps (what a sitemap is, when you need one, no assurance of crawling or indexing; last updated 10 December 2025), checked 24 October 2026
- Google Search Central, Build and submit a sitemap (supported formats, 50MB or 50,000 URL limit, absolute URLs, lastmod, ignored priority and changefreq, sitemap index, UTF-8; last updated 8 July 2026), checked 24 October 2026
- Google Search Console Help, Sitemaps report (owner permissions, submission steps, statuses, deleting a sitemap), checked 24 October 2026
- Google Search Central, How Google interprets the robots.txt specification (the Sitemap field; last updated 23 October 2026), checked 24 October 2026
- Google Search Central, How to specify a canonical URL with rel=canonical and other methods (sitemap inclusion as a weak signal, redirects as a strong signal, consistent linking; last updated 10 July 2026), checked 24 October 2026
- Google Search Central, SEO Starter Guide and Link best practices for Google (sitemaps are not required; every page you care about should be linked from another page; last updated 10 December 2025), checked 24 October 2026
Questions people ask about this
What is the purpose of a sitemap?
Its purpose is to tell search engines which pages you want found and, through last-modified dates, which have changed. It helps discovery, especially on new or large sites. It does not make Google crawl, index or rank anything, so treat it as a helpful list, not a command.
Do I need an XML sitemap?
Not always. Google says it can usually find most pages that are well linked, and that sites of around 500 pages or fewer may not need one. It helps most on large sites, new sites with few external links, and sites with lots of video, image or news content.
What is the difference between an HTML sitemap and an XML sitemap?
An XML sitemap is a machine-readable file for search engines, listing addresses and optional dates. An HTML sitemap is an ordinary page of links for visitors. The XML version supports discovery and is submitted in Search Console. The HTML version helps people navigate, and is rarely needed on a small site.
How do I submit a sitemap to Google?
Make sure you are an owner of the property in Search Console, post the sitemap on your site, test that Google can fetch it, then paste its address into the Add a new sitemap box in the Sitemaps report and click Submit. Google should fetch it immediately and show a status.
How many sitemaps can I submit, and how many should a site have?
There is no fixed number a site should have. Each file can hold up to 50,000 addresses or 50MB uncompressed, so larger sites split their lists and submit a sitemap index. The Sitemaps report shows up to 1,000 submitted entries. Use as many files as keep each one tidy.
Does a sitemap improve my rankings?
Not directly. A sitemap helps Google discover and re-check pages, but Google says there is no assurance listed pages will be crawled or indexed, and its documentation does not describe sitemaps as a ranking factor. A clean sitemap removes friction. It does not make weak pages perform better.
What does a sitemap URL look like, and where is it?
It is a full web address pointing to the file, commonly something like https://www.example.com/sitemap.xml, though the name and place can differ. Check your robots.txt file for a Sitemap line, or ask your platform. Whichever address you use, that is the one to test and submit.
Why does Search Console say my sitemap pages are redirects or duplicates?
Usually the sitemap, canonical tags and server disagree about the address, for example with and without a trailing slash, or http and https. Google treats a redirect as a strong signal and sitemap inclusion as a weak one. Make the sitemap and canonical match the address that returns a normal page.
What is a visual sitemap in web design and UX?
It is a diagram of a website's planned pages and how they connect, drawn before it is built. It forms part of information architecture, the wider organisation of content so visitors can find things. It is a design tool for people and has no direct SEO function, unlike an XML sitemap.
Read next
What Does an SEO Audit Include? A Plain Guide to the Checklist and the Report
An SEO audit should examine nine things and rank what it finds. Here is each check, what a real report looks like next to a tool printout, and when an audit is the wrong first step.
The SEO Migration Checklist: What to Do Before, During and After a Site Move
A site move loses rankings for ordinary, avoidable reasons. This is the checklist in working order, why each step exists, what usually goes wrong, and when the best plan is not to migrate.
Robots.txt Guide: What It Does, What It Does Not Do and the Mistakes That Block Pages
Robots.txt tells crawlers which URLs they may fetch. It does not remove pages from Google. Here is the syntax, noindex versus disallow, the mistakes that block pages, and how to test the file.
