XML to CSV

Turn XML records into CSV.

Updated
Loading tool…

Turn XML records into CSV.

How to use XML to CSV

  1. Paste your list of repeated XML records
  2. Let the tool map each record to a row
  3. Copy or download the CSV for your spreadsheet
Try next →JSON FormatterFormat, repair and validate JSON.

About XML to CSV

XML to CSV converts a list of repeated XML records into a flat CSV table, with one row for each record and one column for each field. It is built for the common case where you have exported or received XML — a feed, an API response, a list of item or row elements — and you need it as CSV so you can open it in a spreadsheet or drop it into a CSV-based tool. Paste the XML in and you get a header row of field names followed by one row per record.

Whether you think of it as converting, transforming, translating, or reformatting XML into CSV, it is the same paste-and-go job here. You can copy the CSV straight out or save it as a .csv file to open in Excel, Google Sheets, or Numbers. It works best on a flat list of similar records that each hold the same simple fields; deeply nested elements, attributes, and records with mismatched fields do not map cleanly onto rows and columns, so very structured documents may need reshaping first.

The conversion runs entirely in your browser, so the XML you paste is read and turned into CSV on your own device and never uploaded to a server. It is free, needs no account or sign-up, has no usage limits, and there is nothing to install.

Frequently asked questions

How do I convert XML to CSV?
Paste XML that contains a repeated record element, and the tool produces CSV with a header row of field names and one row per record. There is no upload step and no button-heavy setup — you paste the XML and the CSV appears.
What does the CSV output look like?
You get a plain CSV table: the first line is a header row of the field names found in each record, and every following line is one record. That is exactly the shape a spreadsheet expects, so it opens cleanly into rows and columns.
Can I download the result as a .csv file?
Yes. You can copy the CSV out to paste elsewhere, or save it as a .csv file. The file is generated on your device from the XML you pasted, so it downloads directly without going through a server.
Will the CSV open in Excel or Google Sheets?
Yes. Standard comma-separated output opens in Excel, Google Sheets, Numbers, and any tool that reads CSV. Save it as .csv or paste the text into a new sheet and the columns line up with the header row.
Can it convert CSV back to XML?
No. This tool goes one direction — XML in, CSV out. It does not do the reverse CSV-to-XML conversion, so if you need to build XML from a spreadsheet you will want a separate CSV to XML tool.
What kind of XML does it expect?
It works best on a flat list of similar records, such as repeated item or row elements that each hold the same simple fields. That shape maps neatly onto rows and columns, which is what a CSV table is.
What about XML with attributes or nested elements?
Deeply nested XML, values stored in attributes, and records with different fields do not map cleanly to a flat table, so the result may be incomplete for complex documents. For simple, repeated records it works well, but very structured XML may need reshaping first.
Is my XML uploaded anywhere?
No. The data is parsed in your browser, so your XML stays on your own device and is never sent to a server. That also means it keeps working offline once the page has loaded.
Is it free and account-free?
Yes, it is free with no account or sign-up and no usage limits. There is no watermark or restriction on the CSV you get, and nothing to install.