Sitemap Generator
Generate a valid XML sitemap from a list of URLs.
- Runs locally in your browser
- No upload required
Try it
Supported formats
Privacy
Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.
Generated a sitemap with 2 URL(s) and 0 finding(s).
How it works
- Split the input into non-empty URLs, dropping exact duplicates.
- Validated each URL is absolute and within the length limit.
- Emitted one <url> block per URL with the optional shared elements.
- Escape XML entities in URLs; the generator does this for you.
Methodology
- Split the URL list, trim blank lines and remove exact duplicates.
- Validate each URL is absolute and within the protocol length limit.
- Emit a UTF-8 XML declaration and a <urlset> with one <url> per entry, escaping XML metacharacters.
Usage
- Paste one absolute URL per line.
- Optionally set a shared lastmod date and changefreq.
- Optionally set a priority between 0.0 and 1.0.
- Generate and copy or download the sitemap XML.
Examples
These are examples, not current values: they use fixed inputs, while the interactive tool computes live results in your browser.
Two URLs with a lastmod
{
"urls": "https://gampangin.example/\nhttps://gampangin.example/tools/",
"lastmod": "2026-10-01"
}URLs with changefreq and priority
{
"urls": "https://gampangin.example/tools/json-formatter/",
"changefreq": "monthly",
"priority": "0.8"
}Limitations
Sitemaps and discovery
A sitemap lists the URLs you want crawled. It is a hint, not a directive; a URL is only indexed if it is crawlable and useful.
Keep the URL set canonical: list the preferred URL, not every variant.
Frequently asked questions
- Does the sitemap need a lastmod?
- No. lastmod is optional and, when present, should be the last significant modification date, not the build date.
- Should I use priority?
- Google says priority is ignored for ranking. It is still part of the protocol, so use it only if another consumer needs it.
Sources
- sitemaps.org — Sitemap protocol — sitemaps.org
- Google Search Central — Build and submit a sitemap — Google Search Central
Send feedback
Tell us if this tool helped, report a problem, or suggest a tool. Only the message you type is sent — never the input you used in the tool.
Was this tool useful?
Prefer to write to us directly? See the contact page.