XML to CSV
Flatten XML into a CSV file: one row per record, with nested values and attributes as columns.
Or paste the content instead
Your converted file will appear here.
Columns from nested XML
Nested elements are flattened into dotted column names, so <customer><name> becomes a customer.name column, and attributes such as id="A1" become @id. Records missing a value simply get an empty cell, so every row has the same columns.
How to use the XML to CSV: step by step
- Choose an XML file, or paste the XML.
- Optionally type the record element (for example
item); otherwise the most repeated element is used. - Pick a separator: comma, semicolon or tab.
- Convert and download the CSV.
A real example
A product feed lists each product as <item> with a nested <price currency="USD">. The CSV gets one row per item, with columns like price and price.@currency, ready for Excel or Google Sheets.
Tips for better results
- Nested elements become dotted columns (
customer.name); attributes start with@. - Use semicolons if the CSV will open in Excel set to a European language.
- For a ready-made spreadsheet, use XML to Excel.
More questions
Can I convert large XML files?
Yes, within your device’s memory. Very large feeds take longer on phones.
Frequently asked questions
Is my file uploaded anywhere?
No. The file is read and converted by your own browser, so it never leaves your device. That makes it safe for customer lists, finances and other private data.
Can I open the CSV in Excel?
Yes. The file is saved as UTF-8 with a marker Excel recognises, so special characters display correctly. Use XML to Excel if you want a .xlsx file directly.
What if my XML has several kinds of records?
The tool converts one record type at a time. Enter each tag name in the Record element box in turn to export them separately.