Skip to main content
MyDataFixer

XML to CSV Converter

Turn an XML file into a table you can open in Excel: product feeds, accounting and invoice exports, bank statements, sitemaps. The records are found for you, nested data gets its own columns, and you download a CSV or Excel file.

Open an .xml file of up to 150 MB. It is read on your device, never uploaded, and your original file is never changed.

Your file is read by your browser on this device. It is not uploaded to our servers.

How the XML to CSV converter works

  1. Open an .xml file. It is read on your device, in pieces, so large files work too; the text encoding named in the file is used.
  2. The element that repeats as a list of records (for example every <product> or <VOUCHER>) is found for you. If the file has several lists, choose another one above the table.
  3. Each record becomes a row. Its child elements and attributes become columns, nested elements get dotted names such as address.city, and repeated elements inside one record (several <phone>) are joined in one cell with “; ”.
  4. Download the table as CSV or as an Excel workbook. Each file is checked before it is downloaded.

Example

A product feed has <item><g:id>00123</g:id><title>Kurta</title><g:price>499.00 INR</g:price></item> for every product. The table gets the columns g:id, title and g:price, one row per product. The id keeps its leading zeros, and the feed's own title, which isn't a product, is left out (the page says so).

What XML to CSV never does

  • Upload your file. Everything is read and converted in your browser.
  • Change a value: codes keep their leading zeros, long numbers all their digits, and text is kept exactly as written (entities such as &amp; become &).
  • Load other files or expand entities a document defines for itself: such documents are refused for safety.
  • Guess when the XML has a mistake. It shows what is wrong and the line and column.

Good to know

  • Files up to 150 MB. Very large files need a computer or a recent phone with enough memory; if a file is too large for the device, it stops safely and says so.
  • Repeated elements inside one record are joined in one cell; text mixed with child elements is joined into one cell too.
  • XML that isn't a list of similar records (for example a settings file) gives a table that may not be useful.

Questions and answers

Is my file uploaded?

No. Your browser reads the file on your device and creates the CSV or Excel file there. Nothing is sent to MyDataFixer's servers or to anyone else.

Can I convert XML to Excel?

Yes. Choose “Download Excel (.xlsx)”. Plain numbers become numbers and year-month-day dates become dates, while codes with leading zeros stay text.

Which part of the XML becomes the rows?

The element that repeats as a list, such as every <product> in a feed or every <VOUCHER> in an accounting export. If the file has more than one list, choose the one you want above the table.

What happens to attributes like id="7"?

They become columns too, named after the attribute. If a child element has the same name, the attribute column gets an @ in front, such as @id.

Why was my file refused?

Either the XML has a mistake (the message shows the line and column), or it defines its own entities in a <!DOCTYPE>, which is refused for safety. Files from normal exports, feeds and sitemaps don't do that.