Skip to main content

    Sitemap XML Generator

    Generate a sitemap.xml for your website. Add URLs, set priority and frequency, then download or copy.

    Free to use. Runs in your browser.

    Enter a website URL to crawl its pages and generate an XML sitemap. Runs entirely in your browser using the site's links, no server required.

    What Is a Sitemap and Why You Need One

    A sitemap is an XML file that lists every page on your website you want search engines to find. Think of it as a table of contents for crawlers. Without one, Google has to discover your pages by following links, which means orphaned pages (no links pointing to them) might never get indexed.

    For small sites with good internal linking, a sitemap is a nice-to-have. For sites with hundreds of pages, dynamic content, or pages behind JavaScript rendering, it's essential. Google Search Console actually tells you to submit a sitemap, it's one of the first things you do when setting up a new site.

    Sitemap Tag Reference

    TagRequired?PurposeExample
    <loc>YesFull URL of the pagehttps://example.com/about
    <lastmod>RecommendedLast modification date (ISO 8601)2026-04-14
    <changefreq>OptionalHow often the page changesweekly, monthly, daily
    <priority>OptionalRelative importance (0.0-1.0)1.0 for homepage, 0.5 for blog posts

    What this means for you: Google has said it largely ignores changefreq and priority, it determines crawl frequency based on its own observations. However, lastmod is genuinely useful and can prompt re-crawling of updated content. Always keep lastmod accurate.

    Sitemap Best Practices

    Keep It Under 50MB / 50,000 URLs

    Google limits individual sitemaps to 50MB uncompressed or 50,000 URLs. For larger sites, use a sitemap index file that points to multiple sitemap files.

    Reference It in robots.txt

    Add Sitemap: https://example.com/sitemap.xml to your robots.txt file. This ensures every crawler finds it, not just Google.

    Only Include Indexable Pages

    Don't include pages with noindex tags, pages that 301 redirect, or error pages. The sitemap should only list canonical, indexable URLs that return 200 status codes.

    Submit to Google Search Console

    After uploading your sitemap, submit it through Google Search Console's Sitemaps section. This triggers immediate crawling and lets you monitor indexing status.

    Types of Sitemaps

    TypeFilePurposeWho Needs It
    XML Sitemapsitemap.xmlLists all pages for search enginesEvery website
    Sitemap Indexsitemap-index.xmlPoints to multiple sitemap filesSites with 50,000+ URLs
    Image Sitemapimage-sitemap.xmlLists images for Google Image searchPhotography, e-commerce
    Video Sitemapvideo-sitemap.xmlLists video content with metadataSites hosting video content
    News Sitemapnews-sitemap.xmlLists articles for Google NewsNews publishers only

    This tool generates standard XML sitemaps. For most websites, that's all you need. Image and video sitemaps are only worth the effort if you're specifically targeting Google Image or Video search results.

    Related Tools

    How to use this tool

    1

    Enter your website domain (e.g. https://example.com)

    2

    Add page paths with their change frequency and priority

    3

    Click Generate Sitemap, then copy or download the XML file

    Common uses

    • Creating XML sitemaps for new website launches
    • Generating sitemaps for submission to Google Search Console
    • Building sitemaps for static sites without CMS auto-generation
    • Adding sitemap entries for new pages and blog posts

    Share this tool

    Frequently Asked Questions

    What is a sitemap.xml?
    A sitemap is an XML file that lists all the pages on your website you want search engines to find and index. It acts as a table of contents for crawlers.
    How often should I update my sitemap?
    Update it whenever you add, remove, or significantly change pages. For blogs and dynamic content, generate it automatically during each build or deploy.
    Where should I put the sitemap?
    Upload it to your site root: https://yoursite.com/sitemap.xml. Also reference it in your robots.txt file using the Sitemap directive.
    Does Google use the priority tag?
    Google has said it largely ignores the priority and changefreq tags. It determines crawl frequency based on its own observations. The lastmod tag is more useful for prompting re-crawls of updated content.
    What's the maximum sitemap size?
    Individual sitemaps are limited to 50MB uncompressed or 50,000 URLs. For larger sites, use a sitemap index file that points to multiple sitemap files.
    Should I include every page in my sitemap?
    Only include canonical, indexable pages that return 200 status codes. Don't include pages with noindex tags, redirect pages, error pages, or duplicate content.
    How do I submit my sitemap to Google?
    Go to Google Search Console > Sitemaps, enter your sitemap URL, and click Submit. Google will crawl and index the listed URLs. You can also add a Sitemap directive to robots.txt.
    Do I need a sitemap for a small website?
    Small sites with good internal linking can be crawled without a sitemap. But it's still recommended, it costs nothing to create and ensures every important page is discoverable.
    Can I have multiple sitemaps?
    Yes. Create a sitemap index file (sitemapindex) that references individual sitemaps, for example, one per content type or language. This is standard for large sites.
    What format does lastmod use?
    ISO 8601 date format: YYYY-MM-DD (e.g., 2026-04-14) or full datetime with timezone (2026-04-14T10:30:00+00:00). Date-only format is most common.
    Is my data sent anywhere?
    No. The sitemap is generated entirely in your browser. Copy it to clipboard or download as a file, nothing is uploaded.
    What's the difference between a sitemap and robots.txt?
    A sitemap tells search engines which pages to crawl. Robots.txt tells them which pages NOT to crawl. They complement each other, use both for optimal SEO.

    Results are for general informational purposes only and should be checked before use. They are not professional advice. See our Disclaimer and Terms of Service.