A sitemap sitting in a folder on your computer does nothing. Search engines can only use the file once it lives on your site at an address they can fetch, and submitting it means pointing them at that address. Owners often treat generation and submission as one step, then wonder why nothing changed: the file was built correctly but never hosted, or hosted but never announced.

This guide walks the whole path in order. You generate a valid sitemap.xml with the free XML Sitemap Generator on Ovatly, host it at the root of your domain so it has a stable URL, reference that URL in robots.txt, and submit the same URL in Google Search Console. Each step is small; skipping any one of them breaks the chain.

Contents

  • Quick answer
  • Step 1: generate a clean file
  • Step 2: host the file at your site root
  • Step 3: reference it in robots.txt
  • Step 4: submit the address in Search Console
  • What submission does and does not do
  • Limitations and honest expectations
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

Generate your sitemap.xml with the XML Sitemap Generator, upload it to the root of the domain it describes so it lives at a stable address such as https://example.com/sitemap.xml, add a Sitemap line with that address to your robots.txt file, and submit the same address in your search console accounts, including Google Search Console. Submission is telling search engines where the file lives. The file has to be hosted first, and the address you submit has to be the address where the file actually is.

Step 1: generate a clean file

Submission starts with a file worth submitting, and the generator's own steps are the short version:

  1. Paste your URLs, one full URL per line, including https://.
  2. Optionally choose a change frequency, a priority and a last-modified date to apply to every URL.
  3. Check the skipped-lines report if any URL was rejected.
  4. Copy or download the generated sitemap.xml.

The skipped-lines report matters here. Entries must be complete absolute URLs starting with http:// or https://, so a line like example.com/about, a bare domain without the protocol, is reported and skipped rather than silently corrupting the file. Fix any skipped lines before you go further; a page missing from the file cannot be discovered from it. If you want to see what the finished file should look like before you build yours, our XML sitemap examples guide shows the exact shapes the generator produces.

Step 2: host the file at your site root

Upload the generated sitemap.xml to the root of the domain it describes. For most sites that gives the file the address https://example.com/sitemap.xml, with your own domain in place of the example. Root placement is the convention the tool's documentation gives, and it matters for a practical reason: the sitemap describes that domain, and search engines expect to fetch it from that domain.

Treat the address as permanent. The URL is what you hand to robots.txt and to Search Console in the next two steps, and it is the address that gets fetched again later. A file that moves, or that only exists in a download folder, is a submission that quietly stops working. Before moving on, open the address in your browser and confirm the file itself loads. That is the copy that counts.

Step 3: reference it in robots.txt

Your robots.txt file can carry a line that names the sitemap's address:

Sitemap: https://example.com/sitemap.xml

Use your real sitemap address, not the example. This is one of the two reference points the generator's documentation names: reference the file in robots.txt with a Sitemap line, and in your search console accounts. The robots.txt line is the passive path, there for any crawler that reads the file. It costs one line and it works even for engines where you hold no account, so there is no good reason to skip it.

Step 4: submit the address in Search Console

The active path is your search console accounts. The generator's FAQ puts it plainly: put the file at the root of the domain it describes, and reference it in robots.txt and in your search console accounts. For Google, that account is Google Search Console. Submitting means giving the console the sitemap's address, the same stable URL from step 2, so Google knows where to fetch the file.

That is the whole of the submission step, and it is worth resisting the urge to make it more complicated. There is no file to upload to Google and no content to paste. You host the file on your own site, and you hand over its address. If the address is wrong, unreachable or different from where the file actually lives, the submission points at nothing, which is why step 2's browser check matters more than anything you do inside the console.

What submission does and does not do

A sitemap is a discovery hint. It helps search engines find new or deep pages that links alone might not surface quickly, and that is the honest scope of the benefit. It does not improve rankings; rankings depend on the pages themselves. It is also not a guarantee of indexing. Pages earn indexing by being canonical, indexable and worth including, which is why the file should list the canonical, indexable pages you want found and leave out redirects, noindexed pages and duplicates.

Submitting through both paths, robots.txt and Search Console, does not multiply the effect. It simply makes sure the address is on record in the two places the documentation names, so no crawler has to guess where your sitemap lives.

Limitations and honest expectations

The generator enforces a practical cap of 2,000 URLs per build and tells you when it trims the list, while the protocol itself allows up to 50,000 URLs and 50 MB uncompressed per file. A site bigger than the tool's cap splits its list into several files joined by a sitemap index, and each of those files still needs hosting at a reachable address. The optional change frequency, priority and last-modified values are applied across the whole list rather than per page, and Google largely ignores priority and changefreq anyway; lastmod is used only when it is consistently accurate.

The other limit is control. Once the address is submitted, fetching and indexing run on the search engine's schedule, not yours. Keep the file accurate as pages are added and removed, keep its address stable, and let the discovery hint do its quiet work. The wider set of guides in the SEO tools category covers checking and validating the file itself.

Common mistakes

  • Submitting an address where no file lives. The console gets a URL, and the URL has to serve your sitemap. Check the address in a browser first.
  • Generating the file and never hosting it. A downloaded sitemap.xml on your computer is invisible to search engines. Upload it to the site root.
  • Ignoring skipped lines. A URL rejected at generation time is missing from the file, and a missing page cannot be discovered from the sitemap. Read the report and fix the line.
  • Listing pages that should stay out. Redirects, noindexed pages and duplicates do not belong in the file. List canonical, indexable pages only.
  • Expecting rankings or guaranteed indexing. A sitemap helps discovery and crawling. It promises neither position nor inclusion.

FAQs

Where do I put the sitemap file? At the root of the domain it describes, for example https://example.com/sitemap.xml, and reference it in robots.txt with a Sitemap line and in your search console accounts.

Does a sitemap improve rankings? No, it helps discovery and crawling of new or deep pages. Rankings depend on the pages themselves.

Should every page be in the sitemap? List the canonical, indexable pages you want search engines to find. Leave out redirects, noindexed pages and duplicates; the sitemap is a discovery hint, not a guarantee of indexing.

Why was one of my URLs skipped? Entries must be complete absolute URLs starting with http:// or https://. Relative paths and bare domains without a protocol are reported and excluded so the file stays valid.

How many URLs can one sitemap file hold? The protocol allows up to 50,000 URLs and 50 MB uncompressed per file. This tool enforces a practical cap of 2,000 URLs per build and tells you when it trims the list; split larger sites into several files joined by a sitemap index.

Conclusion

Submitting a sitemap is a short chain: generate a clean file with the XML Sitemap Generator, host it at a stable address at your site root, reference that address in robots.txt, and submit it in Google Search Console. Do all four and search engines have a reliable map of the pages you want found. Skip one, and the map never reaches them.