Convert XML to CSV
Flatten XML to rows
What is XML to CSV Converter?
Flatten XML records into a CSV spreadsheet. Auto-detects the repeated record element (e.g. `<book>` inside `<catalog>`), expands nested elements using dot paths, and keeps attributes as separate columns prefixed with "@". Great for data sources that still publish XML; old bank exports, some RSS feeds, and enterprise APIs.
How do I use XML to CSV Converter?
- Paste XML into the input panel.
- The tool auto-detects the record array; its path is shown above the output.
- Pick a delimiter and copy / download.
When should I use XML to CSV Converter?
XML to CSV is the right tool for tabular XML. For tree-preserving conversion to JSON, use XML to JSON. For minor formatting cleanup without changing format, use XML Formatter.
Frequently asked questions
How does it decide which XML elements become columns?
Children of a repeating element become rows; their sub-elements become columns. Pick the repeating element (the "row selector") in the dropdown; the tool suggests likely candidates.
What happens to attributes?
By default, attributes become columns named @attributeName. Toggle "Merge attributes with elements" to blend them into the main key space.
Does it handle namespaced XML?
Yes; prefixes are preserved in column headers. Use the "Strip namespaces" toggle if you want cleaner column names.
Is my file uploaded anywhere?
No. Everything runs in your browser. Your files never leave your device, and there is no server component for this tool.
Tools that pair well with XML to CSV Converter
- XML to JSON Converter convert xml documents, free and in your browser.
- XML Formatter pretty-print xml, free and in your browser.
- CSV to JSON Converter structured csv → json, free and in your browser.
- CSV to Excel Converter csv → formatted .xlsx, free and in your browser.