Free tool

Sitemap.xml generator from a list of URLs

Paste your page addresses, one per line. The tool builds a sitemap.xml file as you type, and you can copy or download it. Everything runs in your browser.

    
        

    Your URLs are not sent anywhere. The file is built only in your browser.

    What is a sitemap.xml file?

    A sitemap.xml file tells search engines which pages exist on your website and should be found. It is a plain list of addresses in XML format, following the sitemaps.org protocol. It helps most with a new site that few other sites link to yet, with a larger site, and with pages that visitors cannot reach from the menu. A small site with well linked pages does not strictly need one, but it does no harm.

    WordPress and most other content management systems create a sitemap on their own. This tool is useful for hand-coded sites, simple pages without a CMS, or when you want to show a search engine only selected URLs.

    How to use the tool

    1. Paste your page URLs, one per line. You can copy them from the browser, a spreadsheet or your site menu. Empty lines and duplicates are removed automatically.
    2. Decide whether to add a date. When ticked, the tool adds today's date or a date you choose.
    3. Read the warnings. The tool points out URLs without https://, URLs with a space and URLs from a different domain than the first one.
    4. Copy the result or download the sitemap.xml file and upload it to your site.

    What Google says about sitemaps

    According to Google's documentation, a sitemap should use full, absolute URLs, including https:// and the domain, and the file must be UTF-8 encoded. Characters such as & must be escaped, for example as &, and the tool does this for you. A single file can hold at most 50,000 URLs or 50 MB uncompressed. A bigger site splits its URLs across several files.

    The tool does not add priority or changefreq tags, because Google's documentation says it ignores those values. Google uses the lastmod date if it is consistently and verifiably accurate.

    Common mistakes

    • The same date on every page, even though most of them did not change. The lastmod date should match a real change to the content. If you do not know it, leave it out.
    • URLs that redirect or return an error. Only list pages you want to appear in search results.
    • Mixed versions of a URL, for example with and without www. Use the version your site actually runs on.
    • URLs from another domain. The sitemap on your site should only list URLs from that site.
    • Forgetting to update it. When you add or remove a page, paste the new list into the tool and upload the file again.

    Where to put the file and what to do next

    Google recommends putting the sitemap in the root folder of your site, so it is reachable at example.com/sitemap.xml. Then submit it in the Sitemaps report in Google Search Console, and add a Sitemap line with its full URL to your robots.txt file. Our robots.txt generator can add that line for you. Submitting a sitemap is only a hint to Google, so it does not guarantee that every URL will be downloaded or used. For step by step help, read XML Sitemap: What It Is and How to Submit It to Google and Google Search Console: A Guide for Small Businesses.

    A sitemap helps search engines find your content. To see whether AI assistants mention your business too, run the free AI visibility test. You will find more free helpers on the tools page.

    Frequently asked questions

    Does my website need a sitemap.xml?

    Not every site does. If your pages are well linked to each other, Google can usually find them without one. A sitemap helps a new site that few other sites link to yet, a larger site, and pages that are hard to reach from the menu. It only takes a minute to make, so it is worth having.

    Why does the tool not add priority and changefreq?

    Google says in its documentation that it ignores priority and changefreq values, so they would only make the file bigger. The tool adds the page URL and, if you want, the lastmod date, which Google uses when it is accurate and can be verified. If you do not know when a page changed, leave the date out.

    How often should I update my sitemap?

    Whenever you add a new page, remove an old one or change a URL. Paste the current list into the tool, download the new file and upload it to the same place. Google reads the sitemap again on its own, but after a bigger change you can resubmit it in the Sitemaps report in Search Console.

    Does the tool send my URLs anywhere?

    No. The file is built only in your browser, and nothing is sent or stored. The download also happens directly in your browser, with no server involved. The tool needs no access to your website and changes nothing on it. Upload the finished file yourself or send it to whoever manages your site.

    Add your sitemap to robots.txt

    The robots.txt generator builds a file with rules for search and AI bots and adds a line with your sitemap URL. Free, no signup.

    Open the robots.txt generator