A sitemap is a file on your website that lists the pages, videos and other files you want search engines to know about, so crawlers can find and understand them more efficiently. It is not a ranking trick and it does not guarantee that Google will index every page, but for a new blog it is a useful signal, and it is easy to set up.
Here is what a sitemap does, whether you need one, how to make one and how to submit it, based on Google’s own documentation.
What a sitemap does
Google’s documentation describes a sitemap as a file where you give information about the pages and files on your site and how they relate to each other. Search engines read it to crawl your site more efficiently. It can include details such as when a page was last updated, and it can describe video, image and news content too.
One thing people get wrong: a sitemap helps Google discover your URLs, but Google says it does not guarantee that everything in it will be crawled or indexed. And leaving a page out of your sitemap does not stop Google from indexing it if it finds the page through links. If you want a page kept out of search, you use a noindex tag, not the sitemap.
Do you need a sitemap?
Google says that if your pages are properly linked, it can usually discover most of your site. It lists situations where a sitemap helps more:
- Your site is large.
- Your site is new and has few links pointing to it from other sites.
- You have a lot of video or image content, or you appear in Google News.
It also says you might not need one if your site is small (about 500 pages or fewer), is well linked internally and has little media or news content. In practice, a new blog is exactly the case where a sitemap is worth having, since few other sites link to you yet. Good internal linking does the same job from the inside.
XML sitemap, HTML sitemap and the others
Google supports several formats and says it has no preference between them: XML, RSS or Atom feeds, and plain text files. XML is the most flexible and the one most people use. An HTML sitemap, which is an ordinary page that links to your important pages, can help visitors, but Google notes it is not a format you can submit in Search Console.
What a basic XML sitemap looks like
Each page sits in a small block with its full address and, optionally, the date it was last changed. Google ignores the priority and change frequency values, and it uses the last modified date only when it is consistently accurate. So skip the priority numbers and keep your dates honest.
The size limits
A single sitemap can hold up to 50MB uncompressed or 50,000 URLs. Larger sites split the list across several files and can use a sitemap index file that points to them. A normal blog will never hit this limit.
How to create a sitemap
On WordPress
You may not have to do anything. Google notes that content management systems such as WordPress often make a sitemap available already. WordPress itself has generated a basic sitemap since version 5.5, usually at /wp-sitemap.xml, and many SEO plugins create their own, usually at /sitemap.xml or a similar address. Open your domain followed by those paths in a browser to see which one exists. If you use an SEO plugin, use the address that plugin gives you and avoid running two sitemaps at once.
On other platforms
Check your platform’s help section. Site builders and hosted services often create the sitemap for you. If you build by hand, you can use a sitemap generator and upload the file to the root of your site, which Google recommends.
Rules to follow
- Use full, absolute addresses, including
https://and your domain. - List only the pages you want people to find in search, the ones you would be happy to see in results.
- Do not list pages that redirect, error out or are blocked.
- Save the file with UTF-8 encoding.
How to submit your sitemap to Google
Submitting means telling Google where the file is. You do not upload it to Google. You need to be an owner of the property in Search Console. If you have not set that up, start with my guide on how to add your website to Google Search Console.
- Open your sitemap address in a browser and make sure it loads without a login.
- In Search Console, open the Sitemaps report.
- Under Add a new sitemap, paste the address of your sitemap.
- Click Submit.
- Check the status. You want to see Success. If you see another status, click the row to read the details.
Google says the sitemap should be fetched right away, but crawling the pages in it can take time, and not every URL is guaranteed to be crawled. Do not resubmit every day. A successfully read sitemap is revisited periodically, and you only need to resubmit after big changes or after fixing a failed fetch.
If you do not have owner permission, Google says you can list the sitemap in your robots.txt file instead.
Common sitemap problems
- Could not fetch. The address is wrong, the file is blocked, or the server was down. Test it in a browser and try again.
- Submitted pages are not indexed. A sitemap is a suggestion. Thin, duplicate or low quality pages may be crawled and left out. Improve the page and its links.
- The wrong address format. Relative addresses and mixed http and https versions cause trouble.
- Old pages listed. Remove deleted or redirected pages so the file stays clean.
- Two sitemaps from two plugins. Choose one.
After a hosting move or an SSL change, check that your sitemap still loads. See how to move a website to a new host for the full checklist.
How a sitemap fits with the rest of your SEO
A sitemap supports good content, it does not replace it. Write posts that answer real questions (how to write a blog post that ranks covers my process), link them to each other, and keep the site fast. Then the sitemap helps Google find what you have built. If AI search is on your mind, read is SEO dead in the age of AI.
Common questions
Where is my sitemap located?
On many WordPress sites it is at /sitemap.xml or /wp-sitemap.xml after your domain name. Your SEO plugin’s settings will show the exact address.
Will a sitemap make Google index my pages faster?
It helps Google discover them, but it does not guarantee crawling or indexing, and it does not set a timetable.
Do I need to submit a sitemap again when I publish a new post?
Usually not. Google rechecks submitted sitemaps from time to time, and a good sitemap updates itself when you publish.
Can I submit a sitemap to Bing too?
Yes, Bing Webmaster Tools has its own place to submit sitemaps, and you can also list the sitemap in your robots.txt file so any search engine can find it.
Is a small blog allowed to skip the sitemap?
Google says small, well linked sites may not need one, but a new blog with few outside links still benefits.
Source: Google Search Central’s pages on what a sitemap is and how to build and submit one, and the Sitemaps report help page.
