Tutorial · 5 min read

How to Create a Sitemap XML From JSON — Generate SEO Sitemaps Instantly

If your CMS, headless backend, or API exports data as JSON, you already have the URL list you need for a sitemap. The JSON URL Extractor turns that JSON into a valid sitemap.xml in seconds — no coding, no command line.

Why Generate a Sitemap From JSON?

Many modern websites store their page structure in JSON — from headless CMS exports and API dumps to configuration files and SSG content manifests. When you need to submit those URLs to Google Search Console, manually writing a sitemap.xml is tedious and error-prone.

With the JSON URL Extractor, you paste the JSON, see every link instantly, filter out unwanted entries (image assets, video embeds), and export directly as sitemap.xml. The output follows the standard sitemap 0.9 protocol — no tweaking needed.

Step 1: Paste Your JSON Containing Page URLs

Open the JSON URL Extractor and paste your JSON data. This could be a CMS export, an API response containing page entries, or any JSON with loc, url, or link fields. The tool recursively scans every string value and extracts all http and https URLs.

Try the Sitemap JSON sample from the dropdown to see how a typical sitemap data export looks when processed — it includes page URLs, image assets, stylesheets, and JavaScript files.

Step 2: Filter Out Non-Page URLs

A CMS export often mixes page URLs with image links, CSS files, and script sources. To build a clean sitemap:

Step 3: Export as Sitemap XML

Once your filtered URL list is ready:

  1. Verify the URL count in the top toolbar — Google recommends max 50,000 URLs per sitemap.
  2. Click the Download ▾ button and select Sitemap (.xml).
  3. The tool generates a valid <urlset> document with each URL wrapped in <url><loc>...</loc></url>, with special characters properly XML-encoded.
  4. Upload the .xml file to your server and submit it to Google Search Console.

The export respects your current filters — only visible URLs are included. If you need to combine multiple sitemaps, repeat the process and upload both.

Turn Your JSON Into a Sitemap — No Coding Required

Paste your data, filter, preview, and export. All free and browser-based.

Open JSON URL Extractor →

Best Practices

Frequently Asked Questions

Is the generated sitemap.xml valid for Google Search Console?

Yes. The sitemap.xml export follows the standard sitemap 0.9 protocol with proper XML encoding. You can upload it directly to Google Search Console without any modification.

Can I exclude image URLs from the sitemap?

Yes. Use the Image/Video/Other tabs to filter the URL list before exporting. Click Other to show only non-media links, then export as XML. Only the currently visible URLs are included in the export.

Does the tool support deduplication for sitemaps?

Yes. The Deduplicate option is enabled by default. It compares URLs case-insensitively and keeps only the first occurrence, preventing duplicate entries in your sitemap.

Can I preview images while building a sitemap?

Yes. Click the Preview button to expand the media grid. Image thumbnails appear inline so you can visually verify that asset URLs are correct before including them in your sitemap.

What is the maximum number of URLs a sitemap.xml can contain?

Google recommends a maximum of 50,000 URLs per sitemap and a file size under 50MB. For larger exports, split your URL list into multiple sitemaps and use a sitemap index file.