XML to CSV Converter
Convert XML records into a CSV table you can open in a spreadsheet. Free, instant, and no signup required.
About XML to CSV conversion
XML is still the standard for RSS/Atom feeds, SOAP APIs, and Office file formats under the hood — features like attributes and XSD schema validation go beyond what JSON's plain key-value model can express. CSV is what you get from a database export or a spreadsheet download — universally supported by analysis tools, but limited to flat, row-and-column data with no native nesting.
This conversion goes through the same JSON model the other converters use: elements and attributes become JSON keys first, then flatten to (or unflatten from) CSV columns. Deeply nested XML can produce wide, dot-notation-heavy CSV headers — flatten your XML schema first if you want a tidy spreadsheet.
How to convert XML to CSV
- Paste your XML into the left editor, or click sample above it to try example data.
- Click Convert. The CSV result appears on the right instantly.
- Click copy to copy the result, or download to save it as a file.
Example
Input (XML):
<person>
<name>Ada Lovelace</name>
<role>Mathematician</role>
<active>true</active>
<skills>math</skills>
<skills>programming</skills>
</person>
Output (CSV):
person.name,person.role,person.active,person.skills
Ada Lovelace,Mathematician,true,math; programming
Frequently asked questions
<item> element under a <root>. If you want a specific element name instead, convert to JSON first, rename the array key, then convert that JSON to XML.