XML to CSV Converter
Turn repeating XML records into CSV in your browser.
What is XML to CSV conversion?
This tool parses XML into rows you can open in spreadsheets. Repeating sibling elements (for example many <user> nodes) become one CSV row each; nested fields are flattened with dot-separated column names. Attributes are included with an @_ prefix from the parser.
How it works
Parsing uses fast-xml-parser in the browser. If the document has a single root with one array of records, that array drives the table. Otherwise the tool falls back to a single flattened row so you still get usable CSV.
Limits
- Deeply nested or irregular XML may produce many columns or JSON-like cells for arrays.
- Malformed XML shows an error until the markup is fixed.
- Large documents may feel slow; trim to the fragment you need.
Frequently Asked Questions
Can I choose delimiter or encoding?
Output is UTF-8 comma-separated. For TSV or custom delimiters, use a dedicated converter after export or our XML to TSV tool if it fits your case.
Why is one cell JSON?
When a field contains an array, it is serialized to JSON inside the cell so no data is silently dropped.
Does this upload my file?
No. File pickers and paste only feed your local browser tab.
Can CSV be converted back to the same XML?
Not automatically. Round-tripping would need a schema or custom mapping.
Related tools
Your recent visits