Convert XML to CSV with our free online converter.
Use the converter below or open in full converter with more options.
The output below was generated by the same conversion code the converter uses, run on this sample when the page was built.
<catalog>
<book id="bk101">
<title>Designing Data-Intensive Applications</title>
<author>Martin Kleppmann</author>
<year>2017</year>
</book>
<book id="bk102">
<title>The Pragmatic Programmer</title>
<author>Andrew Hunt</author>
<year>1999</year>
</book>
</catalog>An XML document always has one root element, so it parses to an object rather than an array, and the converter stops with "CSV output requires an array of objects".
Workaround: convert to JSON first (XML to JSON), reshape the data there, then use JSON to CSV.
The same data is 214 characters as minified JSON and 341 as pretty-printed JSON. Sizes are character counts, not tokens: token counts depend on the model's tokenizer (see the tokenizer comparison).
Extensible Markup Language is a verbose but powerful format. Still widely used in legacy systems, SOAP APIs, and document formats.
Comma-Separated Values is the standard format for tabular data. Perfect for spreadsheets, data analysis, and simple data exports.
Use CSV when working with spreadsheets (Excel, Google Sheets), doing data analysis, or exporting data for external use.
Paste your XML into the editor on json2toon.co. The tool detects the input and produces CSV instantly, then you copy the result. Conversion runs entirely in your browser, so nothing is uploaded to a server.
Yes. Converting XML to CSV on json2toon.co is free with no account, signup, or usage limit. A free public API is also available for automated, programmatic conversion.
Convert XML to CSV with our free online converter.
An XML document always has one root element, so it parses to an object rather than an array, and the converter stops with "CSV output requires an array of objects".
Yes. The XML to CSV conversion happens client-side in your browser. Your source data stays on your device and is never sent to or stored on a server, which makes it safe for private or sensitive payloads.