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
<books><book id="1"><title>Dune</title><year>1965</year></book><book id="2"><title>Emma</title><year>1815</year></book></books>
title,year,@id Dune,1965,1 Emma,1815,2
How to use the XML to CSV Converter
- Paste or type your XML into the input area, or open a file from your device.
- Adjust the options above the editor if the tool offers any.
- 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.
Related converters
XML to HTML TableTurn repeated XML elements into an HTML table with a header row, with a safe live preview.CSV to XML ConverterConvert CSV rows into XML elements with configurable root and row element names.XML to YAML ConverterConvert XML documents to readable YAML, keeping attributes as @_name keys and repeated elements as lists.XPath TesterRun XPath 1.0 expressions against an XML document and see the matching elements, attributes or values.XML to JSON ConverterConvert XML to JSON. Attributes become @_name keys, repeated elements become arrays, numbers are detected.XML to XSD GeneratorInfer an XML Schema (XSD) from sample XML: nesting, element order, optional and repeated elements, attributes and simple types.XML MinifierMinify XML by removing whitespace between tags and, optionally, comments, to shrink file size.XML FormatterBeautify and indent XML while keeping comments, CDATA sections, attributes and element order exactly as written.