Skip to content
CertoflowCertoflow
SEO Tools

XML Sitemap Generator

Generate sitemap.xml from URLs.

Last updated: June 2026

Guide

Introduction

Search engines discover pages through links, but explicit URL lists in sitemap.xml accelerate indexing for new sites, large migrations, and pages with weak internal linking. Building a valid sitemap by hand is tedious — XML namespace declarations, urlset structure, loc and lastmod elements — and a single syntax error can invalidate the entire file in Search Console.

Certoflow's XML Sitemap Generator converts a list of absolute URLs into a standards-compliant sitemap.xml urlset. Output includes loc and lastmod elements for each URL. Processing runs entirely in your browser — internal URL inventories, staging paths, and client site structures never upload to a server. Light and dark theme support keeps the tool comfortable during site launch marathons.

Reference the hosted sitemap URL in Robots.txt Generator and submit manually in Google Search Console after deployment.

What this tool does

The generator accepts URL input and produces sitemap.xml:

FeatureBehavior
URL inputOne absolute URL per line
lastmod dateOptional date applied to all entries — defaults to today
Output formatXML urlset per sitemaps.org 0.9 schema
ValidationRequires at least one non-empty URL
CopyOne-click export of complete XML document

Each URL becomes a url entry:

<url>
  <loc>https://example.com/page</loc>
  <lastmod>2026-06-23</lastmod>
</url>

How it works

Certoflow's generateSitemapXml function processes the URL list:

  1. Trim whitespace from each line
  2. Filter empty lines
  3. Escape XML special characters in URLs (&, <, >, ", ')
  4. Wrap each URL in url elements with loc and lastmod
  5. Enclose in urlset root with XML declaration and namespace

Output structure:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/</loc>
    <lastmod>2026-06-23</lastmod>
  </url>
</urlset>

If no lastmod date is provided, Certoflow uses today's date in ISO format (YYYY-MM-DD). Processing throws an error if the URL list is empty — preventing accidental deployment of blank sitemaps.

All generation is synchronous JavaScript with no server submission. The tool does not ping Google, Bing, or other search engines.

Real-world examples

Static site launch

Indie developer ships a 25-page Astro site. Collect all production URLs, paste one per line, generate sitemap.xml, upload to /sitemap.xml at site root. Add Sitemap directive in robots.txt via Robots.txt Generator.

Site migration inventory

Agency migrates client site from old CMS. Export URL list from crawl tool, paste into generator, set lastmod to migration date. Submit new sitemap in Search Console after DNS cutover.

Documentation portal

Developer docs site adds new sections weekly. Maintain a running URL list in a text file. Regenerate sitemap before each deploy, replace hosted file.

E-commerce category refresh

After pruning discontinued product URLs, regenerate sitemap with remaining indexable pages only. Remove deleted URLs from list before generation to avoid 404 signals in Search Console.

Blog with slug changes

URLs restructured from https://example.com/blog/post-title to https://example.com/articles/post-title. Generate sitemap with new URLs only after 301 redirects are verified. Canonical tags via Canonical Tag Generator reinforce preferred paths.

Common mistakes

Using relative URLs. Sitemap loc elements require absolute URLs including protocol: https://example.com/page, not /page.

Including noindex or blocked URLs. Do not list URLs blocked by robots.txt or marked noindex — wastes crawl budget and creates Search Console warnings.

Exceeding 50,000 URLs or 50MB per file. Standard sitemap protocol limits single files. Split large sites into multiple sitemaps with a sitemap index file (manual step beyond this tool).

Wrong lastmod dates. Setting all URLs to today's date on every regeneration without actual content changes may reduce crawler trust in lastmod signals. Update lastmod only when content genuinely changes.

Forgetting to host the file. Generated XML must be uploaded to your server. Certoflow creates the file locally — it does not deploy or host sitemaps.

Omitting Search Console submission. After hosting, submit the sitemap URL in Google Search Console and Bing Webmaster Tools for faster discovery.

Unescaped characters in URLs. Certoflow escapes XML entities automatically. Manually edited sitemaps often break on URLs containing & in query parameters.

Related tools

Within the SEO category:

Cross-category links:

Browse all SEO Tools at /seo.

FAQ

Is my URL list sent to a server?

No. Sitemap generation runs locally in JavaScript. URLs never leave your device.

Does this tool submit to Google?

No. Host the generated file on your server and submit the URL manually in Google Search Console.

How many URLs can I add?

Browser memory limits apply, but hundreds of URLs are typically fine. Very large sites may need sitemap index files.

What date format does lastmod use?

ISO 8601 date format: YYYY-MM-DD. Optional custom date applies uniformly to all entries.

Can I include priority and changefreq?

This generator outputs loc and lastmod only. Add priority and changefreq manually if needed — Google largely ignores these fields.

Can I use this offline?

Yes, after the page loads.

Does Certoflow support dark mode?

Yes. Toggle light and dark themes for comfortable editing.

Where should sitemap.xml be hosted?

Common locations: https://example.com/sitemap.xml at site root. Any publicly accessible path works if referenced in robots.txt.

Should I include redirected URLs?

No. List final destination URLs only, after 301 redirects are in place.

How often should I regenerate?

Regenerate when adding, removing, or significantly updating pages. Submit updated sitemap in Search Console after major changes.

Frequently Asked Questions

How many URLs can I add?
Browser memory limits apply, but hundreds of URLs are typically fine.
Does this ping Google?
No. Submit the sitemap URL in Google Search Console after hosting the file.

Related tools that complement this workflow.