XML → CSV / online converter

XML to CSV Converter

Flatten an XML file into a CSV table. Each repeating element becomes a row, and its child tags and attributes become columns.

01 / how to

How to convert XML to CSV

01

ADD YOUR XML

Drop the XML file into the box above or choose it from your device.

02

CONVERT TO CSV

CSV is already selected. Press Convert and wait a few seconds.

03

DOWNLOAD

Save the finished CSV file. The original is deleted from our server.

02 / what you get

What happens to your data

Kept

  • The repeating elements (for example every <book>) become the records, and their child tags become fields
  • Attributes are kept as fields named @_attribute, for example @_id
  • Codes with leading zeros, like 007, stay text instead of turning into 7
  • Saved as UTF-8 with a BOM, so Excel shows Ukrainian, Polish and other non-Latin letters correctly

Good to know

  • Only the repeating records are exported. The wrapper elements around them (like <catalog>) are dropped.
  • Text mixed with tags inside one element is read as a #text field.
  • Commas, quotes and line breaks inside a value are wrapped in quotes automatically so the columns stay aligned.
  • Nested objects and lists cannot sit in a table cell, so they are written into the cell as JSON text, for example {"city":"Lviv"}.

03 / formats

XML vs CSV

XML

An XML (Extensible Markup Language) file stores structured data using custom, nested tags, similar to HTML. It's verbose but strict, which makes it reliable for automated systems — common in enterprise software, government forms, and legacy data exports.

Used in: Enterprise systems · Government forms · Legacy data exports

CSV

A CSV (Comma-Separated Values) file stores tabular data as plain text — each line is a row, commas separate the columns. It's the most universal way to move spreadsheet data between programs: Excel, Google Sheets, databases, and most apps can all read it.

Used in: Excel & Sheets exports · Database exports · Data sharing

04 / more

More conversions

Have a different file? Open the main converter — it detects the format for you.