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.
<?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>
<?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
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.
Choose the indent
Two or four spaces per level. Text inside elements stays as it is.
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.
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>.
Copy or download
Copy the result or download it as formatted.xml.
Where small businesses meet XML
| File | What it is | Why you might open it |
|---|---|---|
| sitemap.xml | The list of pages a site offers to search engines | Checking which pages are listed and when they last changed |
| Product feed | Products, prices and stock for a marketplace or shopping ads | Finding why an item was rejected |
| RSS or Atom feed | Latest posts or news from a site | Checking what a feed reader or newsletter tool will pick up |
| Exports and invoices | Data from accounting, booking or e-invoicing systems | Reading 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