XML sitemap generator
Build a valid XML sitemap from a list of page addresses, with optional last-modified date, frequency and priority.
Input
Result
Fill in the input and press Run.
Your input is processed in memory and then discarded. It is not stored or logged. Even so, don't paste live passwords or keys into any online tool.
Use it from code or an agent
curl -s https://setget.net/v1/tools/sitemap-generate \
-H 'Content-Type: application/json' \
-d '{"input":{"urls":["https://example.com/","https://example.com/search?q=a&page=2"],"lastmod":"2026-03-14"}}'
import json, urllib.request
body = {'input': {'urls': ['https://example.com/', 'https://example.com/search?q=a&page=2'], 'lastmod': '2026-03-14'}}
request = urllib.request.Request("https://setget.net/v1/tools/sitemap-generate", json.dumps(body).encode(),
{"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/sitemap-generate", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"input":{"urls":["https://example.com/","https://example.com/search?q=a&page=2"],"lastmod":"2026-03-14"}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
"slug": "sitemap-generate",
"input": {
"urls": [
"https://example.com/",
"https://example.com/search?q=a&page=2"
],
"lastmod": "2026-03-14"
}
}
{
"input": {
"urls": [
"https://example.com/",
"https://example.com/search?q=a&page=2"
],
"lastmod": "2026-03-14"
}
}
Endpoint: POST /v1/tools/sitemap-generate. Over MCP: run_tool with slug: "sitemap-generate".
Machine-readable: input schema, Markdown. Connect an agent.
Inputs
| Name | Type | Required | What it does |
|---|---|---|---|
urls |
json | yes | The pages: a list of full addresses, or of objects {"loc": ..., "lastmod": ..., "changefreq": ..., "priority": ...}. Plain text with one address per line also works. |
lastmod |
string | no | Last-modified date (2026-03-14) for pages that do not give their own. |
changefreq |
string | no | How often pages change, for pages that do not give their own. One of: always, hourly, daily, weekly, monthly, yearly, never. |
priority |
number | no | Priority from 0.0 to 1.0, for pages that do not give their own. From 0 to 1. |
Examples
Input
{
"urls": [
"https://example.com/",
"https://example.com/search?q=a&page=2"
],
"lastmod": "2026-03-14"
}Result
{
"text": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n <url>\n <loc>https://example.com/</loc>\n <lastmod>2026-03-14</lastmod>\n </url>\n <url>\n <loc>https://example.com/search?q=a&page=2</loc>\n <lastmod>2026-03-14</lastmod>\n </url>\n</urlset>\n",
"urls": 2,
"duplicates_removed": 0
}Per-page details
Input
{
"urls": [
{
"loc": "https://example.com/",
"priority": 1.0,
"changefreq": "daily"
},
{
"loc": "https://example.com/blog/",
"lastmod": "2026-02-01"
}
]
}Result
Different every time. Press the example button above to see one.
Questions
- How many pages can a sitemap hold?
- The standard allows 50,000 per file. This tool builds up to 5,000 at a time.
- Do search engines use changefreq and priority?
- Google ignores both and uses lastmod only when it is accurate. They are optional, so leave them out unless another system needs them.
Related tools
- robots.txt generatorBuild a robots.txt: allow or block all crawlers, add your own rules, block AI crawlers and list sitemaps.
robots-txt-generate - Redirect rules generatorTurn a list of old and new addresses into redirect rules for Apache .htaccess, Nginx, or a Netlify _redirects file.
htaccess-redirects - .gitignore generatorBuild a .gitignore for the languages, editors and operating systems you use, merged without duplicates.
gitignore-generate - ASCII banner text generatorTurn short text into large five-line banner letters for terminals, READMEs, logs and code comments.
ascii-banner - ASCII table generatorRender headers and rows as a box-drawing or plain ASCII table for terminals, logs and code comments.
ascii-table - Background pattern generatorMake seamless SVG background patterns (dots, grid, stripes, checker or waves) with your colours and scale.
pattern-image