What Is a Sitemap and How Do You Submit It to Google?
A sitemap is a file that lists the important pages on your website and tells search engines "these pages exist, come and crawl them". It usually lives in the root folder of the site under the name sitemap.xml and is submitted to Google in a few steps through Google Search Console. In this guide we explain in plain language what a sitemap does, how it is created and how to submit it to Google.
What does a sitemap do?
Search engines find pages by following links. If no other page links to a page, it can go unnoticed for a long time. A sitemap closes that gap by giving the search engine a complete list of your site.
A sitemap matters most in these situations:
- Your site has just gone live and no other sites link to it yet
- You have many pages (blog posts, products, listings, service pages)
- You add new content often
- Your site publishes in more than one language
- Some pages are not in the menu and can only be reached through links inside content
One important note: a sitemap does not guarantee that a page will be indexed. It is an invitation to the search engine. Whether a page gets indexed also depends on the quality of its content, its technical condition and the overall trust in the site.
Types of sitemaps
| Type | Who it is for | What it contains |
|---|---|---|
| XML sitemap | Search engines | Page addresses, last updated dates, language versions |
| Image sitemap | Image search | Addresses of the important images on each page |
| HTML sitemap | Visitors | A readable list of the pages on the site |
| Sitemap index | Very large sites | A list of several sitemap files |
For most corporate sites and small to medium online stores, a single XML sitemap is enough. When the number of pages runs into tens of thousands, the sitemap is split into several files and tied together with an index file.
What should a good sitemap include?
- Only published pages: Drafts, inactive or deleted pages should not be in the list.
- Only pages you want indexed: Pages marked "noindex" should stay out of the sitemap.
- Final addresses: List the current address of each page, not old addresses that redirect.
- Accurate update dates: Each address should carry the date the page actually changed.
- Language versions: On multilingual sites, each page should point to its versions in other languages.
- Full addresses: Addresses should start with https and use the main domain of the site.
How is a sitemap created?
Automatically with a content management system
The most practical method is to let your content management system generate the sitemap. When you add a new page, product or blog post, the sitemap updates itself. When a page is deactivated, it drops off the list. There is nothing for you to track by hand.
With tools
If your system does not produce a sitemap, online generators or crawling programs can help. They crawl the site and produce a file. The downside is that you have to repeat the process every time the content changes.
By hand
For a tiny site with a handful of pages, the file can be written by hand. But the chance of mistakes is high and keeping it current is hard, so this approach is not recommended.
How do you submit a sitemap to Google?
The most reliable way to tell Google about your sitemap is Google Search Console. The steps are:
- Sign in to Google Search Console with your Google account.
- Add your site as a property and verify ownership. Verification is done through your domain records or a verification code added to the site.
- Open the "Sitemaps" section in the left menu.
- Type your sitemap address into the "Add a new sitemap" field. In most cases this is sitemap.xml.
- Click "Submit".
- Within a few hours or days the status shows "Success". You can follow the number of discovered addresses here.
For Bing, the same process is done through Bing Webmaster Tools. Adding the sitemap address to your robots.txt file also helps other search engines find it. All you need is a line in robots.txt that starts with "Sitemap:" followed by the full address of your sitemap.
Common sitemap mistakes
- Local or test addresses: When a site moves from a test environment to live, old addresses can remain in the sitemap. Always regenerate it after launch.
- Redirected addresses: If the old address of a moved page is still listed, the search engine follows a redirect it did not need to.
- Pages returning 404: Deleted pages left in the list show up as errors in Search Console.
- Noindex conflicts: If a page is marked "do not index" and also listed in the sitemap, the search engine gets a mixed signal.
- An outdated sitemap: If new posts and products do not enter the sitemap, they are discovered later.
- Blocked by robots.txt: Pages in the sitemap that robots.txt blocks cannot be crawled.
The difference between a sitemap and robots.txt
These two files are often confused, but they do different jobs. A sitemap tells the search engine "look at these pages". robots.txt says "do not go into these sections". For example, the admin panel, the cart or internal search results can be kept out of crawling with robots.txt. Used together, they help the search engine spend its time on the pages that really matter.
The key is that the two files should never contradict each other. If you list a page in the sitemap but block it in robots.txt, the search engine cannot see it and Search Console shows a warning.
Sitemaps on multilingual sites
If your site publishes in more than one language, every language version should be in the sitemap. Even more important, the versions of the same page in different languages should be linked to each other. This link is built with "hreflang" information. That way, someone searching in Turkish sees the Turkish page and someone searching in English sees the English one.
Managing this by hand becomes almost impossible as the number of pages grows. That is why automatic sitemap generation is a real relief on multilingual sites.
What to do after submitting your sitemap
Submission is not a one-off job. Checking the "Pages" report in Search Console once a month is a good habit. There you can see which pages are indexed and why others are not. Warnings such as "Crawled, currently not indexed" usually point to thin content or overlap with similar pages.
When you publish a new and important page, you can also ask Google to crawl it with the URL inspection tool in Search Console. This can be faster than waiting for the sitemap to be read again.
Frequently asked questions
Should I add images to my sitemap?
Yes, if you want traffic from image search. When product, project or gallery images are in the sitemap, they are more likely to be found in Google Images.
Can Google find my site without a sitemap?
Yes. Google also discovers pages through links. A sitemap simply speeds up discovery and makes it easier to find pages that would otherwise be missed.
How often should I submit my sitemap?
Once is enough. Google reads the sitemap again at regular intervals as it changes. As long as the address stays the same, there is no need to submit it again.
Will a sitemap improve my rankings?
Not directly. It helps your pages get found faster and more completely. Rankings depend on content quality, user experience and other factors.
Conclusion
In short, a sitemap is a small file, but it is one of the cornerstones of communicating with search engines. A sitemap that lists the right pages, stays current and is submitted to Search Console helps your content get discovered faster. If you are wondering why your site does not appear in search results, our article Not showing up on Google? can also help. If you want your sitemap generated automatically and your redirects and technical SEO settings managed from one panel, take a look at our KlavyusCMS Panel, and for regular checks of your existing site, explore our Maintenance and Technical Support solution.