XML Sitemap Generator
Generate a valid XML sitemap from your list of URLs. Essential for SEO and search engine crawling.
Generate Sitemap
How to Use
The XML Sitemap Generator creates a properly formatted sitemap.xml file that you can submit to Google Search Console, Bing Webmaster Tools, and other search engine platforms. A sitemap helps search engines discover and index all the important pages on your website, ensuring that your content appears in search results as quickly and completely as possible.
Step 1: Enter your website's base URL (for example, "https://example.com") in the first field. Then, in the URL paths text area, list all the page paths you want to include in your sitemap, one per line. Each path should begin with a forward slash, such as "/about", "/contact", "/blog/post-title", and so on. The tool supports any number of URLs up to 50,000 entries (the XML sitemap standard limit).
Step 2: Click the "Generate Sitemap" button. The tool combines the base URL with each path to create fully qualified URLs, then wraps them in proper XML sitemap format with the required XML declaration, urlset namespace, and individual url/loc elements. The generated XML is valid according to the sitemaps.org protocol specification.
Step 3: Use the generated sitemap. You can copy the XML code to your clipboard using the copy button, or download it as a .xml file using the download button. Once you have the file, upload it to the root directory of your website (so it is accessible at https://example.com/sitemap.xml) and submit the URL to Google Search Console and Bing Webmaster Tools.
A well-maintained sitemap is particularly important for new websites with few external backlinks, websites with large archives or deeply nested pages, and sites that use JavaScript extensively for content rendering. Even for smaller sites, a sitemap ensures that search engines can find every page you want indexed.
Tips & Best Practices
Include only canonical URLs. Your sitemap should list only the canonical versions of your pages. Avoid including duplicate URLs, parameter-based URLs (like ?session=123), or paginated URLs that redirect to a primary page. If you have the same content at multiple URLs, list only the canonical one in your sitemap.
Keep your sitemap updated. Every time you publish new content or remove old pages, regenerate and re-upload your sitemap. Search engines check sitemap files periodically, but you can also request a recrawl through Google Search Console after submitting an updated sitemap to speed up the reindexing process.
Sitemap size limits. A single sitemap can contain up to 50,000 URLs and must be no larger than 50MB (uncompressed). If your site exceeds these limits, you need to create multiple sitemap files and use a sitemap index file to reference them. Most small to medium websites will comfortably fit within a single sitemap.
Prioritize your most important pages. While this generator creates a basic sitemap, more advanced sitemaps can include optional tags like
Test your sitemap after uploading. Before submitting your sitemap to search engines, verify that it is accessible at the correct URL and that it parses correctly. You can use the URLs inspection tool in Google Search Console to test a sample of URLs from your sitemap and confirm they are being indexed properly.
Found this helpful? Share it!