Map Extract
Free tool

XML formatter and checker

Paste a sitemap, a product feed, an RSS file or any XML export and get it indented so you can read it. Unclosed or mismatched tags are reported by name, and a minify option puts it back on one line.

Runs in your browser. Nothing you enter is uploaded.

Example: reading a sitemap that arrived as one line

A joinery firm's website (fictional) produces its sitemap as a single long line. Formatted with two-space indent, the structure is clear: two pages listed, and only the homepage carries a last modified date. That is useful to know before asking why a new page has not been picked up by search engines.

Input
<?xml version="1.0"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://oakfieldjoinery.example/</loc><lastmod>2026-11-01</lastmod></url><url><loc>https://oakfieldjoinery.example/kitchens/</loc></url></urlset>
Result
<?xml version="1.0"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://oakfieldjoinery.example/</loc>
    <lastmod>2026-11-01</lastmod>
  </url>
  <url>
    <loc>https://oakfieldjoinery.example/kitchens/</loc>
  </url>
</urlset>

Formatting XML

  1. Paste the XML

    Anything from a short fragment to a full file. Presets load a product feed item, an RSS item and a list of contacts if you want to try it first.

  2. Choose the indent

    Two or four spaces per level. Text inside elements stays as it is.

  3. Minify if you need one line

    Tick Minify to remove the indentation again, for example before pasting XML into a form field or an API request.

  4. Read any error

    A structural problem stops the formatting and names the tag, such as Unclosed tag <product> or Closing tag </c> does not match <b>.

  5. Copy or download

    Copy the result or download it as formatted.xml.

Where small businesses meet XML

FileWhat it isWhy you might open it
sitemap.xmlThe list of pages a site offers to search enginesChecking which pages are listed and when they last changed
Product feedProducts, prices and stock for a marketplace or shopping adsFinding why an item was rejected
RSS or Atom feedLatest posts or news from a siteChecking what a feed reader or newsletter tool will pick up
Exports and invoicesData from accounting, booking or e-invoicing systemsReading a record without special software

Questions people ask

How do I make XML readable?

Paste it into the box and the formatted version appears straight away, with each element on its own line and nested elements indented. Choose two or four spaces. If nothing appears and an error is shown instead, the XML has a structural problem that must be fixed before it can be formatted.

What does Unclosed tag mean?

An element was opened but never closed, often because a file was cut off when copied or exported, or a closing angle bracket is missing. The message names the tag that was left open, so search the text for it and add or repair its closing tag.

Can it convert XML to CSV or JSON?

Not on this page, which only formats and checks XML. For turning data into a spreadsheet, look at the CSV and JSON conversion tools on this site. For sitemaps and feeds, formatting is often enough to find what you need.

Is my XML file uploaded?

No. Formatting and checking happen in your browser. Product feeds, invoices and exports often contain prices and customer details, and none of that leaves your device.

Where your data goes

The XML is formatted and checked in your browser. Nothing you paste is sent to Map Extract or any other server.

Checked against the tool on

Top