What Is a sitemap.xml and What Does It Do?
A sitemap.xml is an XML-format file that lists the addresses of all the important pages on your website. It is the most organized way to tell Google and other search engines: "Here are the pages on my site, please crawl all of them." Especially on new sites, large multi-page sites, or sites with weak internal linking, a sitemap significantly speeds up how quickly Google discovers your pages.
A sitemap can contain not only page addresses but also the last-modified date and relative importance of each page. This information helps Google use its crawl budget more intelligently.
Three Ways to Create a sitemap.xml
1. With a WordPress Plugin (The Easiest)
If you use WordPress, you don't need to write any code to create a sitemap. When you install one of the Yoast SEO or Rank Math plugins, it automatically generates an up-to-date sitemap. With Yoast your sitemap is usually published at yoursite.com/sitemap_index.xml, and with Rank Math at yoursite.com/sitemap_index.xml. The plugin updates the sitemap automatically as you add new content, so you only need to set it up once.
2. With Online Tools (For Static Sites)
If you have a hand-coded static site that doesn't use WordPress, you can create your sitemap by entering your site address into free online tools such as xml-sitemaps.com. The tool crawls your site and produces a downloadable sitemap.xml file.
3. By Writing It Manually (For Small Sites)
If you have a small site with just a few pages, you can also write the sitemap by hand. The basic structure looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.siteniz.com/</loc>
<lastmod>2026-05-31</lastmod>
</url>
<url>
<loc>https://www.siteniz.com/hakkimizda</loc>
</url>
</urlset>
You add each page as a <url> block and save the file under the name sitemap.xml.
Uploading the sitemap.xml File to the Server
If you use a plugin, the file is published automatically, so you can skip this step. If you created it manually or with a tool, upload the file to your site's root directory (public_html) using an FTP program (for example FileZilla) or your hosting file manager. After uploading, go to https://www.siteniz.com/sitemap.xml in your browser to confirm that the file opens.
Submitting the sitemap.xml File to Google
- Log in to Google Search Console and select the relevant property.
- Click the Sitemaps tab in the left menu.
- In the "Add a new sitemap" field, enter the path to your file. Don't enter the full address, only the file name: for example sitemap.xml or, for Yoast, sitemap_index.xml.
- Press the Submit button.
Within a few minutes to a few hours the status will show as "Success" and the number of discovered URLs will be listed. This means Google has read your sitemap.
Adding the Sitemap to robots.txt
It's good practice to also add your sitemap's address to your robots.txt file. That way, every search engine that supports your sitemap finds it automatically. Add the following line to the end of your robots.txt file:
Sitemap: https://www.siteniz.com/sitemap.xml
Types of Sitemaps
Beyond a single sitemap, there are different types depending on your needs, and knowing them makes your work easier on large sites. The XML sitemap is for search engines and is the most common type. A sitemap index file gathers multiple sitemaps under a single umbrella; Yoast and Rank Math use this structure. An image sitemap helps your images be found more easily in Google Images. A video sitemap carries extra information for your video content. A news sitemap is only required for news sites that have been accepted into Google News. For most business sites, a standard XML sitemap with image support is more than enough.
Managing Sitemaps on Large Sites
If your site has thousands of pages, there are technical limits you need to keep in mind. A single sitemap file can contain at most 50,000 URLs or 50 MB. If you exceed this limit, you need to split your content into logical parts (for example separate sitemaps for posts, pages, and products) and gather them in an index file. The good news is that SEO plugins handle this splitting automatically.
Another important point on large sites is that the sitemap should only contain quality, live pages (those returning a 200 status code) that you actually want indexed. Keeping deleted, redirected, or noindex pages in your sitemap lowers your site's quality in Google's eyes and leads to "Submitted URL issues" warnings. Keeping your sitemap clean ensures your crawl budget is spent on valuable pages.
Follow-Up After Submitting Your Sitemap
The work isn't done once you submit your sitemap; you need to check the Sitemaps report in Search Console regularly. Monitor the "discovered URLs" count from there and make sure it is consistent with your site's actual number of pages. If the status shows "Failed" or a "Submitted URL issues" warning appears, open the report and review the faulty addresses one by one; most of the time the problem stems from a 404, a redirect, or a noindex tag. As long as you keep your sitemap clean and up to date, Google will recrawl your pages regularly.
Frequently Asked Questions (FAQ)
Where should I upload the sitemap.xml file?
Upload the sitemap file to your site's root directory (public_html). You can do the upload with an FTP program or your hosting file manager. After uploading, you should be able to reach the file at https://www.siteniz.com/sitemap.xml.
When submitting the sitemap to Google, should I write the full address?
No. In the Sitemaps tab of Search Console it's enough to enter only the file name; for example sitemap.xml or, for Yoast, sitemap_index.xml. The property address is already added automatically.
How long does it take to be processed after submitting a sitemap?
Usually the status shows as Success within a few minutes to a few hours, and the number of discovered URLs is listed. The actual indexing of the pages, however, can take longer.
Conclusion
A sitemap is a simple but powerful tool that lets Google discover your pages completely and quickly. Whether you create it with a WordPress plugin, an online tool, or by hand, what matters is keeping your sitemap clean, submitting it to Search Console, and declaring it in robots.txt. Once you complete these steps, the appearance of your content in search results speeds up noticeably.