XML to CSV Converter

Find the repeated records in an XML document and export them as spreadsheet rows.

100% Client-Side Processing — your data never leaves this browser. Works offline. How it works

0 lines • 0 bytes Ready
Tip: drop a file anywhere on the editor
Input
Paste, type or drop a file
1
Result
Updates as you type
// Output will appear here…
About this tool

How the XML to CSV works

Convert XML to CSV: repeated elements become rows, child tags and attributes become columns. Open XML feeds and exports in Excel or Google Sheets.

How to use the XML to CSV

  1. Paste XML or upload an .xml file.
  2. Choose the delimiter and whether nested elements are flattened.
  3. Copy or download the CSV.

XML to CSV example

Input
<catalog>
  <book id="1"><title>Clean Code</title></book>
  <book id="2"><title>Refactoring</title></book>
</catalog>
Result
id,title
1,Clean Code
2,Refactoring

When to use it

  • Opening product feeds and sitemaps in a spreadsheet.
  • Analysing XML exports from older systems.
  • Converting RSS items into a table.

Tip: If the wrong elements become rows, paste only the part of the document that contains the records you need.

Finds the records

The first list of repeated elements (for example every <book>) becomes the rows.

Attributes included

Attributes become ordinary columns: id="bk101" gives an id column.

Nested elements

Child elements are flattened into columns like price.currency.

Spreadsheet-ready

Comma, semicolon or tab delimited output.

FAQ

Common questions

Which elements become rows?

The first set of repeated sibling elements found near the top of the document, such as the <item> elements of an RSS feed.

How are attributes shown?

As normal columns named after the attribute, for example id or price.currency. If an attribute and a child element share a name, the attribute column keeps an @ prefix so neither is lost.

What if my XML has namespaces?

Prefixed names such as g:price are kept as column names.

Is the XML uploaded?

No, parsing uses your browser's built-in XML parser.