Sitemap Generator
Paste your URLs, one per line, and get a valid sitemap.xml — with changefreq, priority, and lastmod options, a live preview, and one-click copy or download. Free, private, no signup.
Paste URLs above to generate your sitemap.
How to create a sitemap.xml
A sitemap is one of the first things search-engine optimizers make for a new site. It is a simple XML file that lists every page you want indexed, and it helps crawlers find pages that are buried deep in your navigation or linked only from JavaScript menus.
- Paste your URLs above, one per line. They must be complete addresses starting with
https://. - Set your defaults. Choose a changefreq, a priority between 0.0 and 1.0, and whether to stamp today's date as lastmod.
- Copy or download. The preview updates live; copy the XML or download it as
sitemap.xml. - Publish it. Upload the file to your site's root and submit it in Google Search Console under Sitemaps.
What each tag means
<loc> is the page's URL (required). <lastmod> is the date the page last changed, in YYYY-MM-DD format. <changefreq> says how often the page changes — always, hourly, daily, weekly, monthly, yearly, or never. <priority> ranks the page from 0.0 to 1.0 against your other pages. Special characters in URLs (like &) are escaped automatically so the XML stays valid.
Common mistakes to avoid
Do not include redirect URLs, error pages, or pages blocked by your robots.txt — that wastes your crawl budget and can confuse search engines. Also, every URL in one sitemap must come from the same host (no mixing www and non-www unless they both resolve to the same site).
- What is a sitemap.xml file?
- A sitemap.xml is a machine-readable list of the pages on your website. Search engines like Google read it to discover your pages and understand which ones matter most. It does not guarantee indexing, but it helps crawlers find pages they might otherwise miss.
- Do the URLs need the full https:// address?
- Yes. Every entry must be an absolute URL starting with http:// or https://, and it must belong to the same site that hosts the sitemap. This tool flags any line that is not a valid absolute URL instead of silently dropping it.
- What are changefreq and priority for?
- changefreq tells crawlers how often a page is expected to change (daily, weekly, monthly, and so on); priority ranks a page's importance from 0.0 to 1.0 relative to your other pages. Both are hints, not orders — search engines treat them as suggestions.
- What should I put in lastmod?
- lastmod is the date the page was last changed, in YYYY-MM-DD format. This tool can stamp today's date on every URL, or leave lastmod out entirely if you don't track modification dates.
- How do I give the sitemap to Google?
- Upload sitemap.xml to the root of your website (for example https://yoursite.com/sitemap.xml) and submit that URL in Google Search Console under Sitemaps. You can also point to it from your robots.txt file with a Sitemap: line.
- Is there a limit to how many URLs a sitemap can hold?
- Yes: a single sitemap may contain at most 50,000 URLs and must be no larger than 50 MB uncompressed. If your site is bigger than that, split it into several sitemaps and list them all in a sitemap index file.
More from the codex
Sitemap Generator
Build a valid sitemap.xml for your site.
robots.txt Generator
Build a valid robots.txt file with per-bot rules.
Open tool → LiveSVG Compressor
Minify SVG markup and see exactly how much you saved.
Open tool → LiveURL Encoder / Decoder
Encode/decode URLs and parse query strings.
Open tool → LiveHTML Entity Codec
Encode and decode HTML entities.
Open tool → LiveBase64 Encoder
Encode and decode Base64, URL-safe too.
Open tool → LiveRegex Tester
Test regular expressions live.
Open tool → LiveASCII Table
Every ASCII code, 0–127 — decimal, hex, and HTML entity. Click to copy.
Open tool → LiveWord Counter
Count words and estimate reading time instantly.
Open tool → LiveCase Converter
UPPER, lower, Title Case and more.
Open tool → LiveLorem Ipsum Generator
Placeholder text by paragraph or word.
Open tool → LiveColor Picker
Pick any color, copy its codes, build palettes, and check contrast for accessibility.
Open tool →Support the codex
This tool is free, with no account and no ads. If it saved you a trip to a search engine, consider supporting the indie dev behind it.
Questions about this tool?
Found a bad URL sneaking through or have a suggestion? Email [email protected] — every message is read by the indie dev behind the codex.