Sitemap.xml Generator & Validator

Paste your URLs to get a valid XML sitemap, with clean-up, exclusions and rules for lastmod, changefreq and priority. Large lists are split automatically. You can also paste an existing sitemap to find and fix problems. Everything happens in your browser.

  • 100% free
  • No sign-up
  • Runs in your browser

Your URLs

After a URL you can add a date (lastmod), a changefreq word and a priority from 0.0 to 1.0. An indented image URL below a page adds it to the image sitemap. Lines starting with # are ignored.
How do I get a list of my URLs?

This page runs in your browser, and browsers aren’t allowed to crawl other websites, so paste the URLs in yourself. Easy ways to get them:

  • Your CMS: WordPress, Shopify, Wix and most site builders already make a sitemap (try yoursite.com/sitemap.xml or /sitemap_index.xml). Paste it into “Check an existing sitemap” to review and clean it.
  • Google Search Console: Pages report → View data → Export lists the URLs Google knows about.
  • A desktop crawler: Screaming Frog SEO Spider (free up to 500 URLs) or a command such as wget --spider -r can list every linked page.
  • Your analytics: export the page paths from Google Analytics or similar, then set the base URL above.
  • Static sites: list the .html files in your build folder.

Only include pages you want in search results: the final, canonical URL that returns 200, not redirects, noindex pages or pages blocked by robots.txt.

Clean up

Patterns work like robots.txt: /tag/ matches every URL whose path starts with /tag/, * matches anything and $ marks the end (so /$ is just the home page). Text without a leading slash matches anywhere in the path. Duplicates are always removed and #fragments dropped.

Tags and rules

Google ignores changefreq and priority and only trusts lastmod when it is accurate, so set lastmod to the date the page content really changed. Bing and others may still read all three.

Rules by URL pattern (the first matching rule wins; values typed after a URL win over rules)

    Files

    Used for the robots.txt line and, when the list is split, for the links in the sitemap index. Defaults to your site’s root.

    Your sitemap

    Paste your URLs, or try the example, and your sitemap.xml appears here.

    About the tool

    How the Sitemap Generator works

    The Sitemap.xml Generator & Validator turns a list of your page addresses into an XML sitemap that search engines such as Google and Bing can read. Paste full URLs, or paths like /about/ together with your site’s base URL. After each URL you can add a date, a changefreq word and a priority, and an indented image URL adds that image to the image sitemap. The tool cleans the list as it goes: it removes duplicates, #fragments and tracking parameters such as utm_source, can force https:// and add or remove trailing slashes, and percent-encodes spaces and accented characters.

    Set defaults for lastmod, changefreq and priority, add rules for groups of pages (for example /blog/* weekly at 0.7), and leave out pages with patterns that work like robots.txt. The XML is escaped correctly and updates as you type. A sitemap may hold at most 50,000 URLs and 50 MB, so bigger lists are split into numbered files with a sitemap index that links them, and you can download them all as a .zip. You also get the Sitemap: line for your robots.txt. A browser cannot crawl other websites, so the page explains easy ways to get your URL list, such as Search Console exports or your CMS’s own sitemap.

    In Check mode, paste an existing sitemap.xml or sitemap index. It is parsed in your browser and every entry is listed in a table with its problems: invalid XML, the wrong namespace, relative URLs, mixed hosts or http and https, duplicates, invalid or future dates, bad changefreq or priority values, characters that are not encoded, and files over the limits. One click loads the URLs back into the generator so you can fix them and export a clean file. The tool is rule-based and does not use AI.

    Frequently asked questions

    Why can’t the tool crawl my website for me?

    It runs entirely in your browser, and browsers block pages from reading other websites (this is called CORS). So you paste the URLs instead. Your CMS’s existing sitemap, a Search Console export, Screaming Frog’s free version or your analytics page list are easy places to get them.

    Does Google use changefreq and priority?

    No. Google has said it ignores changefreq and priority. It does use lastmod when the dates are consistently accurate, so set lastmod to when the page content really changed, not today’s date on every page. Bing and some other search engines may still read all three.

    What are the size limits for a sitemap?

    One sitemap file can list up to 50,000 URLs and be up to 50 MB uncompressed. Bigger sites need several sitemaps and a sitemap index that lists them. This tool splits the list for you and writes the index, which you then submit instead of the separate files.

    Where do I upload my sitemap and how do I submit it?

    Upload it to your site, usually as https://yoursite.com/sitemap.xml. Add a Sitemap: line with the full URL to your robots.txt, then submit the sitemap URL in Google Search Console and Bing Webmaster Tools. A sitemap should only list URLs from the same host it is uploaded to.

    Which URLs should I include?

    Only the final, canonical versions of pages you want in search results, which load with a 200 status. Leave out redirects, error pages, pages with a noindex tag, duplicates with tracking parameters and pages blocked by robots.txt.

    What does the validator check?

    It checks that the XML is well-formed and uses the sitemaps.org namespace, and that every entry has a full, encoded http or https URL. It flags duplicates, mixed hosts or protocols, invalid or future lastmod dates, invalid changefreq and priority values, too many images and files over 50,000 URLs or 50 MB.

    Keep exploring
    • Free
      SEO

      Open Graph & Social Preview Checker

      Preview how your page looks when shared on Facebook, X, LinkedIn, WhatsApp and Slack, and fix your Open Graph tags.

      • Open Graph
      • Twitter Card
      • Link preview
    • Free
      SEO

      Robots.txt Generator & Tester

      Create a robots.txt file with simple presets, block AI crawlers if you want, and test any URL to see if Googlebot or another bot may crawl it.

      • robots.txt
      • Block AI bots
      • URL tester
    • Free
      SEO

      Schema Markup Generator (JSON-LD)

      Fill in a simple form to create JSON-LD schema markup for articles, products, local businesses, FAQs, events, recipes and more, with checks.

      • JSON-LD
      • Structured data
      • Rich results
    For makers

    Have an AI Tool?

    Submit your AI tool and help others discover it.