XML to CSV Converter

Free No sign-up

Convert XML files to CSV format in seconds — choose comma or semicolon delimiter.

Drop your XML files here or browse
Supports .xml files up to 50 MB · Multiple files at once

What is an XML to CSV converter?

XML is a flexible format for structured data, but CSV is what most spreadsheet apps, databases, and data pipelines actually consume. This tool converts any well-formed XML into a flat CSV file you can open directly in Excel, Google Sheets, or import into a database — all processed locally in your browser with no data sent to a server.

The converter finds the repeating element in your XML (e.g., <product> or <row>), extracts all fields and attributes, and writes each element as a CSV row. Nested fields are flattened with dot notation. You can choose between a comma (,) or semicolon (;) delimiter — useful when your data contains commas, or when importing into European locale apps that default to semicolons.

DelimiterComma , (default) or semicolon ;
Nested fieldsFlattened: address.city, address.zip
QuotingValues containing the delimiter or quotes are auto-quoted

How to use this tool

File mode. Drop one or more .xml files into the drop zone. Each file appears as a card showing the row count and detected tag. Use the comma/semicolon toggle on the card to switch delimiter, preview the first rows, and download the .csv file.

Paste mode. Switch to the Paste tab, paste your XML into the left panel. The CSV output appears instantly on the right. Choose your delimiter, then copy the text or download the file.

Frequently Asked Questions

Which delimiter should I use — comma or semicolon?
Use comma for most apps (Excel on US/UK systems, Google Sheets, Python, databases). Use semicolon if your data contains commas, or if you are importing into Excel on European locale settings where semicolon is the default CSV separator.
Does the tool handle special characters and quotes?
Yes. Values that contain the delimiter, double quotes, or line breaks are automatically wrapped in double quotes and internal quotes are escaped following the RFC 4180 CSV standard.
Can I convert multiple XML files at once?
Yes. Drop multiple files and each gets its own card with individual delimiter controls and download button. You can also use Download All to get all converted files at once.
What if my XML has deeply nested elements?
Nested elements are flattened using dot notation (e.g., order.shipping.city). Multiple values under the same key are joined with | separator.
Does the file get uploaded to your server?
No. Everything runs in your browser. Your XML data never leaves your device.