FREE TOOLS
XML to CSV
Convert compatible repeated XML records into a flat CSV table.
XML
CSV
Browser only
Your input and output are processed in this browser. They are not uploaded for processing. No account is required.
This tool needs JavaScript. If it does not load, refresh the page and try again.
How to use this tool
- Paste XML text or choose a UTF-8 file; a chosen file takes precedence.
- Requires one root, repeated row elements, matching unique text-only fields, and no unmapped attributes. Also accepts dth-csv-v1 output. Other XML uses XML to JSON.
- Select Process data, review the result, and download it. Use Reset to clear the working data.
Examples
<people><person><name>Alice</name><score>10</score></person><person><name>Bob</name><score>20</score></person></people>
Limitations
XML 1.0, UTF-8, at most 40 nesting levels and 200,000 nodes. No DOCTYPE/custom entities/external resolution. Parser normalizes line endings, entity spelling, and attribute whitespace. 5 MiB input, 20 MiB output.
Spreadsheet protection is on by default and visibly adds apostrophes to formula-like values. Turn it off for exact cell text, taking care with spreadsheet formula execution.
Missing fields, duplicate field names, nested fields, mixed row text, and unmapped attributes are rejected instead of discarded.