onlinexmltools logo

Xml to csv converter

World's simplest xml tool

Free online XML to CSV converter. Just paste your XML in the input form below and it will instantly get converted to CSV. Paste XML, get CSV. There are no ads, popups or nonsense, just a easy to use XML to CSV transformer. Created by developers for developers.
prefer to work with json? { "key": "val" }
We also have Online JSON Tools — utilities for working with JSON data structures. Check it out!
fullscreen fullscreen_exit
Characters
Column separating character
Use a custom quote character
Converting
Always enclose fields in quotes
Xml to csv converter tool What is a xml to csv converter?
This tool translates XML (Extensible Markup Language) data structures to CSV (Comma Separated Values) files. It lets you change CSV column seprator symbol, and individual data element quote symbol, and toggle quoting all data elements.
Xml to csv converter examples Click to use
Simple example
Converts XML with five rows to CSV with comma delimiter
<css> <gradient> <color-stop>red 0%</color-stop> <color-stop>green 25%</color-stop> <color-stop>yellow 50%</color-stop> <color-stop>white 75%</color-stop> <color-stop>black 75%</color-stop> </gradient> </css>
color-stop "red 0%,green 25%,yellow 50%,white 75%,black 75%"
Required options
These options will be used automatically if you select this example.
Column separating character
Quote all CSV fields
This example converts meta-tagged XML into CSV with all fields quoted
<?xml version="1.0" encoding="UTF-8"?> <notepad> <note> <from>Anna</from> <to>John</to> <subject>Reminder</subject> <body>Don't forget tomorrow's early 8:30am meeting!</body> </note> </notepad>
"from","to","subject","body" "Anna","John","Reminder","Don't forget tomorrow's early 8:30am meeting!"
Required options
These options will be used automatically if you select this example.
Always enclose fields in quotes
Pro tips Master online xml tools
You can pass input to this tool via ?input query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
https://onlinexmltools.com/convert-xml-to-csv?input=%3Ccss%3E%0A%20%20%3Cgradient%3E%0A%20%20%20%20%3Ccolor-stop%3Ered%200%25%3C%2Fcolor-stop%3E%0A%20%20%20%20%3Ccolor-stop%3Egreen%2025%25%3C%2Fcolor-stop%3E%0A%20%20%20%20%3Ccolor-stop%3Eyellow%2050%25%3C%2Fcolor-stop%3E%0A%20%20%20%20%3Ccolor-stop%3Ewhite%2075%25%3C%2Fcolor-stop%3E%0A%20%20%20%20%3Ccolor-stop%3Eblack%2075%25%3C%2Fcolor-stop%3E%0A%20%20%3C%2Fgradient%3E%0A%3C%2Fcss%3E&char-delimiter=%2C
All xml tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Quickly beautify an XML data structure.
Quickly compress an XML data structure.
Quickly check XML for errors and report them.
Quickly highlight the syntax of an XML document.
Quickly convert XML code to an image.
Quickly convert an XML document to a JSON document.
Quickly convert a JSON document to an XML document.
Quickly convert an XML document to a CSV document.
Quickly convert a CSV document to an XML document.
Quickly convert an XML data structure to YAML markup.
Quickly convert a YAML document to XML data.
Quickly convert an XML document to a TSV file.
Quickly convert a TSV document to an XML file.
Quickly convert an XML data structure to Base64 encoding.
Quickly decode a Base64-encoded XML data structure.
Quickly convert an XML file to URL percent-encoding.
Quickly convert a URL percent-encoded XML file to XML.
Quickly convert an XML file to a plain text document.
Quickly edit an XML document in a browser-based XML editor.
Coming soon These xml tools are on the way
Display XML Statistics
Display detailed information about an XML data structure.
Compare Two XML Files
Diff XML documents and show file differences visually.
Truncate XML
Loop over XML and truncate all tags, elements and values.
Convert XML to Bencode
Convert an XML document to Bencode encoding.
Convert Bencode to XML
Convert Bencode data structure to XML file.
Convert XML to BSON
Convert an XML document to Binary JSON (BSON).
Convert BSON to XML
Convert BSON (Binary JSON) to XML data structure.
Convert XML to Data URI
Convert an XML config to data URL encoding.
Convert XML to PHP Array
Convert XML data to PHP data structure.