Home › Developer Tools › Sitemap Generator

Sitemap Generator

Paste your page URLs, one per line, and get a valid sitemap.xml in seconds. Set lastmod, changefreq and priority for all pages or per URL; invalid and duplicate URLs are flagged before you download.

Last updated:

Optional per line: url | priority | changefreq | lastmod (any order, separated by | or a tab).

Defaults for every URL
Per-URL settings
URLprioritychangefreqlastmod

"Default" uses the settings above. Changes are written back to the URL list.

sitemap.xml

  
  
Advertisement
Advertisement

How to use the Sitemap Generator

  1. Paste your URLs, one per line, or open a text or CSV file. Enter your site address if the list contains paths like /about/.
  2. Choose the defaults for lastmod, changefreq and priority. Pick Don't include to leave a tag out.
  3. Override single pages in the table below the list, or add them on the line: https://example.com/ | 1.0 | daily | 2026-10-01.
  4. Press Generate sitemap and fix any URLs listed as invalid.
  5. Download sitemap.xml, upload it to your site's root folder and add Sitemap: https://example.com/sitemap.xml to robots.txt or submit it in Google Search Console.

Sitemap tags explained

TagRequiredAllowed valuesUsed by Google
<loc>YesAbsolute URL starting with http or https, under 2,048 characters, XML-escapedYes
<lastmod>NoW3C date: 2026-10-19 or 2026-10-19T14:30:00+00:00Yes, if it is consistently accurate
<changefreq>Noalways, hourly, daily, weekly, monthly, yearly, neverNo (ignored)
<priority>No0.0 to 1.0, default 0.5, relative to your other pagesNo (ignored)

With Auto by URL depth, priority is 1.0 for the home page and drops by 0.2 for each folder level: /about/ gets 0.8, /blog/post/ gets 0.6, and anything deeper gets 0.4.

Characters that must be escaped

A sitemap must be UTF-8 and every URL must be escaped for XML. The generator does this for you:

CharacterWritten asExample
& (ampersand)&amp;?color=green&amp;size=l
' (apostrophe)&apos;/kid&apos;s-room/
" (quote)&quot;rare in URLs
< and >&lt; and &gt;rare in URLs
Spaces and non-ASCII lettersPercent-encoded/café becomes /caf%C3%A9

After you download the sitemap

  1. Upload sitemap.xml to the root of your site so it opens at https://www.example.com/sitemap.xml.
  2. Add one line to robots.txt: Sitemap: https://www.example.com/sitemap.xml. You can build that file with the Robots.txt Generator.
  3. Submit the sitemap URL in Google Search Console and Bing Webmaster Tools, then check the report for URLs that could not be fetched.
  4. Regenerate the sitemap when you add or remove pages, and only change lastmod when the page content actually changed.

Frequently asked questions

What is an XML sitemap?

An XML sitemap is a file that lists the pages of a website so search engines can discover them. It follows the sitemaps.org protocol, which is supported by Google, Bing, Yandex and others, and can include the date each page last changed.

Do priority and changefreq matter?

Google has said it ignores priority and changefreq. Bing and some other crawlers may still read them, so they are harmless to include. The lastmod date does matter to Google, but only if it is accurate, so set it to the date the page content really changed.

How many URLs can a sitemap have?

Up to 50,000 URLs and 50 MB uncompressed per file. For larger sites, split the URLs over several sitemap files and list them in a sitemap index file. This tool does the split automatically when you paste more than 50,000 URLs.

Where do I put the sitemap file?

Upload it to the root of your site, for example https://example.com/sitemap.xml. A sitemap can only list URLs on the same host and in the same folder or below, so a sitemap in the root can cover the whole site.

How do I tell Google about my sitemap?

Submit the sitemap URL in Google Search Console under Sitemaps, and add a line such as Sitemap: https://example.com/sitemap.xml to your robots.txt file so all search engines can find it.

Which URLs should I include?

Only canonical, indexable pages that return status 200: no redirects, no pages blocked by robots.txt or marked noindex, and no duplicate versions with tracking parameters. Use one consistent form for every URL, such as https and with or without www.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Robots.txt GeneratorBuild a robots.txt file with rules, sitemap lines and AI-bot blocking presets.Meta Tag GeneratorCreate SEO, Open Graph and X meta tags with live previews.Open Graph PreviewPaste OG tags and preview how links look on Facebook, X and LinkedIn.XML FormatterBeautify, validate and minify XML with a collapsible tree view.Bulk URL OpenerOpen a list of URLs in new tabs at once or in batches, with cleanup, dedupe and delay.Hreflang Tag GeneratorCreate hreflang tags, sitemap entries and Link headers for every language and region, validated.Htaccess GeneratorBuild an Apache .htaccess file: HTTPS, www, gzip, caching, error pages, IP blocks, hotlinks.Htaccess & Nginx Redirect GeneratorBuild 301 redirects for .htaccess, Nginx and Netlify or Cloudflare _redirects.Privacy Policy GeneratorCreate a privacy policy for your website or app with CCPA, CalOPPA, COPPA and AdSense sections.UTM Campaign URL BuilderAdd UTM tracking parameters to links and make a QR code.SERP Snippet PreviewPreview your title tag and meta description with pixel-accurate truncation on desktop and mobile.Canonical Tag GeneratorNormalize URLs and create rel=canonical tags and HTTP headers, for one page or a whole list.Content Security Policy GeneratorBuild a CSP header or meta tag with nonces, hashes, presets and report-only mode.Meta Tag AnalyzerPaste page HTML to audit title, description, canonical, robots, Open Graph and hreflang tags.Robots.txt TesterTest whether a URL is allowed or blocked by robots.txt for Googlebot and other crawlers.Sitemap URL ExtractorExtract every URL from a sitemap.xml or sitemap index, validate it and export to CSV or TXT.Cookie Consent Banner GeneratorDesign a cookie banner with accept, reject and settings buttons and copy the HTML/CSS/JS.FAQ Schema GeneratorTurn questions and answers into FAQPage JSON-LD markup with validation and a preview.Google Review Link GeneratorTurn a Google Place ID into a direct review link, QR code and printable review card.Keyword Suggestion ToolTurn one seed keyword into hundreds of Google and YouTube autocomplete keyword ideas.Local Business Schema GeneratorCreate LocalBusiness JSON-LD with address, geo, opening hours, holiday hours and sameAs links.Structured Data ValidatorCheck JSON-LD, microdata and RDFa against schema.org and Google rich result requirements.Terms and Conditions GeneratorCreate terms of service for a website, store, SaaS or app, with payments and governing law.Breadcrumb Schema GeneratorBuild BreadcrumbList JSON-LD plus the matching HTML breadcrumb from names and URLs.Cookie Policy GeneratorCreate a cookie policy with a ready cookie table for Google Analytics, AdSense, Meta Pixel and more.Disclaimer GeneratorWrite a website disclaimer for affiliate, health, finance or blog sites, with short post notices.Keyword CombinerCombine up to 4 keyword lists into every combination in broad, phrase and exact match.Long Tail Keyword GeneratorTurn a seed keyword into long-tail keywords with best, how to, near me, year and for X modifiers.On-Page SEO CheckerPaste page HTML and a keyword to audit title, meta, headings, alt text and keyword use.App Privacy Policy GeneratorCreate a privacy policy for your iOS or Android app from its SDKs, permissions and data.URL Tracking RemoverStrip utm, fbclid, gclid and other tracking parameters from one link or hundreds at once.YouTube Keyword ToolFind YouTube search suggestions for a video topic with A-Z expansion and copy them as tags.
See all 28 SEO & Marketing Tools →