Skip to main content

XML to CSV

Convert XML to CSV online. Pick the repeating element to use as rows; attributes and nested elements become columns. Free and private.

More options

XML

Stays in your browser

CSV

The result appears here after you press Convert.

Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)

Next steps

Done here? Use the Send to… menu on the result to carry it on to CSV Viewer or CSV to JSON.

Free Online XML to CSV

Turn repeating XML elements into spreadsheet rows. The most repeated element is picked for you, or you can name the one to use. It gives developers a quick browser-based way to solve a focused xml to csv task before moving the result into a project.

How to use XML to CSV

Paste your data into the box on the left, or open a file, then press Convert. Each matching element becomes one row. Attributes become columns starting with @, and nested elements become dot-path columns.

Common mistakes

  • XML with no repeating element: the root element is used as a single row.
  • Choosing a row element that is nested inside another row: only the outermost matches are used.

Frequently asked questions

Which element becomes the rows?
By default the element name that appears most often. If that is not the one you want, type its name in "Row element".
What about nested elements?
They become columns named by their path, such as author.name.
What if rows have different children?
The columns are the union of everything found; rows without a value get an empty cell.
Is my data uploaded anywhere?
No. The conversion runs in your browser and nothing you paste or open is sent to a server.
How do I use this xml to csv tool?
Use the interactive controls above; processing stays in your browser and the result is intended as a practical starting point for development work.

More Formatters & Parsers

View all Formatters & Parsers tools →