Tools

Word CounterReadability CheckerKeyword DensityWriting Pattern IndicatorLong-Tail Keyword IdeasSERP Snippet PreviewMeta Tag GeneratorURL Slug GeneratorRobots.txt GeneratorCore Web Vitals CheckerImage CompressorHTML MinifierCSS MinifierJavaScript MinifierVideo & Image SpecsQR Code GeneratorMerge PDFSplit PDFRotate PDFDelete PDF PagesRearrange PDF PagesExtract PDF PagesCrop PDFJPG to PDFPNG to PDFPDF to JPGPDF to PNGResize ImageCrop ImageImage ConverterWebP to JPGHEIC to JPGProfile Photo MakerImage to Text (OCR)MOV to MP4MKV to MP4WebM to MP4AVI to MP4MP4 to MP3Extract Audio from VideoTrim VideoMute VideoVideo to GIFResize VideoCompress VideoM4A to MP3WAV to MP3OGG to MP3AAC to MP3Split CSVSplit ExcelCSV to ExcelExcel to CSVExcel to XMLXML to ExcelXML to CSVXML to JSONJSON to CSV
Data & File toolsFree, no sign-upRuns in your browser

XML to CSV

Flatten XML into a CSV file: one row per record, with nested values and attributes as columns.

Or paste the content instead
—Rows
—Columns

Your converted file will appear here.

Columns from nested XML

Nested elements are flattened into dotted column names, so <customer><name> becomes a customer.name column, and attributes such as id="A1" become @id. Records missing a value simply get an empty cell, so every row has the same columns.

How to use the XML to CSV

  1. Choose an XML file, or paste XML.
  2. Check the detected record element and pick a separator.
  3. Click Convert and download the CSV.

Frequently asked questions

Is my file uploaded anywhere?

No. The file is read and converted by your own browser, so it never leaves your device. That makes it safe for customer lists, finances and other private data.

Can I open the CSV in Excel?

Yes. The file is saved as UTF-8 with a marker Excel recognises, so special characters display correctly. Use XML to Excel if you want a .xlsx file directly.

What if my XML has several kinds of records?

The tool converts one record type at a time. Enter each tag name in the Record element box in turn to export them separately.