Convert

XML to CSV Converter

Turn XML exports and feeds into a spreadsheet-friendly table. The tool finds the repeating elements, lets you choose which one is a row, and shows the detected columns before you download. XML is parsed locally and nothing external is ever loaded. Everything is processed in your browser; your data is not uploaded.

Back

1. XML input

Local only

Processed in your browser; your files and data are not uploaded or stored. Formulas, macros and scripts in your data are never run.

2. Table result

Live preview

For safety, XML containing a DOCTYPE, entity declarations or processing instructions is rejected before it is parsed. Only the XML declaration at the very start is accepted.

CSV downloads use safe export by default: cells starting with =, +, -, @, a tab or a carriage return get a leading apostrophe so spreadsheet apps treat them as text.

XML is parsed in your browser's memory. Limits: 10 MB of XML, 200,000 records and 1,000 columns.

About this tool

About XML to CSV Converter

XML to CSV Converter reads XML locally and turns repeating record elements into table rows. Attributes and child elements become columns, one nested level is flattened into dot-notation columns, and deeper content is kept as XML text instead of being dropped.

XML exports are hard to review in a spreadsheet. This tool finds the elements that repeat, lets you choose which one is a record, and shows the detected columns before download. Unsafe XML features such as DTDs, entities and processing instructions are refused before parsing.

How to use

Step by step

  1. Upload an .xml file or paste the XML.
  2. Choose the repeating record element if more than one is found.
  3. Review the detected columns and table preview.
  4. Choose CSV or TSV and safe or raw export.
  5. Download the table.
Key features

What it offers

  • Automatic detection of repeating record elements
  • Attributes as attr_ columns and child elements as columns
  • One nested level flattened with dot notation
  • Deeper content kept as XML text
  • Repeated child elements numbered (phone, phone_2)
  • DOCTYPE, entities and processing instructions blocked
Best practices

Tips for best results

  • Pick the element that represents one real-world record.
  • Check the detected columns for unexpected names.
  • Remove DOCTYPE lines from trusted files before converting.
  • Use safe export for files opened in spreadsheets.
Benefits

Why people use it

Structure-aware

Records, attributes and nested fields mapped clearly.

Safe parsing

No DTDs, entities or external content.

Private

XML is parsed on your device.

FAQ

Common questions

Repeated sibling elements that each represent a record, such as many <order> elements inside <orders>. Each record becomes a row. If several elements repeat, you choose which one is the record.
Attributes of the record become columns named attr_ plus the attribute name (for example attr_id). Child elements become columns named after the element, with their text as the value. Attributes of a child become child.attr_name, and text directly inside the record becomes #text. Attribute columns do not start with @ so they are not treated as formulas by spreadsheet apps.
One nested level is flattened: <address><city>Pune</city></address> becomes an address.city column. Anything nested deeper is kept as XML text in that cell, so no data is silently lost, and the page reports how many cells this affected.
Repeated children get numbered columns: phone, phone_2, phone_3 and so on, in document order.
Either it is not well-formed (the page shows the parser's message, usually with a line number), or it contains a DOCTYPE, an entity declaration or a processing instruction. These are blocked because they can define entities or point to external files. Remove them and try again.
Element and attribute names are used as written, including any prefix (for example ns:item). Namespace declarations (xmlns) are not turned into columns.
Safe export (on by default) adds an apostrophe in front of any cell that starts with =, +, -, @, a tab or a carriage return, so Excel, LibreOffice and Google Sheets show it as text instead of running it as a formula. This includes values such as -5. Choose raw export only for files read by programs; the preview always shows exactly what will be downloaded.
No. It is parsed in your browser and nothing is fetched, uploaded or stored.
Private by design

This runs entirely in your browser

No file or text you enter here is uploaded. Encoding and decoding happen on your device using native browser APIs — close the tab and nothing remains on a server.

Install Toolisco Add it to your device for offline, one-tap access.