csvkit.org
CSV (Comma-Separated Values) utilities, in the browser
Say hi →

XML to CSV

updated 8 May 2026

xml → csv
Drop a .xml file here, or
ready

XML to CSV Converter

Flatten a row-shaped XML document into CSV (Comma-Separated Values). The tool walks the document root, treats each direct child as a row, and uses each row's child element names as the CSV header. Quoting follows RFC 4180.

What shape of XML works

<rows>
  <row>
    <id>1</id>
    <name>Alice</name>
  </row>
  <row>
    <id>2</id>
    <name>Bob</name>
  </row>
</rows>

Deeply nested XML (records inside records, attributes carrying data, mixed content) is out of scope here; for those, an XSLT or a dedicated parser is the right tool.

Privacy

100% client-side. Nothing is uploaded. See the privacy policy.