Skip to content

XML to CSV Converter

Convert repeated XML records into CSV rows. Child elements and attributes become columns.

Runs in your browserXML → CSV
Loading tool…

Example

Input
<books><book id="1"><title>Dune</title><year>1965</year></book><book id="2"><title>Emma</title><year>1815</year></book></books>
Output
title,year,@id
Dune,1965,1
Emma,1815,2

How to use the XML to CSV Converter

  1. Paste or type your XML into the input area, or open a file from your device.
  2. Adjust the options above the editor if the tool offers any.
  3. Review the CSV result, then copy it or download it as a file.

Privacy and limitations

  • Your data is processed on your device and is not uploaded to any server.
  • The longest list of repeated elements is used as the rows; deeper nesting is flattened into dotted column names.

Browse all xml converters →