onlinexmltools logo
build

Csv to xml converter

World's simplest xml tool

Free online CSV to XML converter. Just paste your CSV in the input form below and it will automatically get converted to XML. Paste CSV, get XML. There are no ads, popups or nonsense, just an awesome CSV to XML transformer. Created by developers for developers.
settings
fullscreen fullscreen_exit
swap_horiz
star
Import from file
Save as...
Copy to clipboard
Can't convert.
An error has occured.
Export to Pastebin
Save as...
Copy to clipboard
Characters
Column separating character
Skip lines starting with this
Use a custom quote character
Converting
First row is treated as header
Do not convert empty lines
Prefix the output with XML meta
Indentation
Indents with two spaces
Indents with one tab
Outputs minified result
help
Csv to xml converter tool What is a csv to xml converter?
This tool translates CSV (Comma Separated Values) data files to XML (Extensible Markup Language) documents. The output XML can be made pretty by modifying indentation options, or it can be compressed by setting unformatted output option. CSV to XML converter also lets you convert custom CSV files. You can modify column separator, column quoting, skip lines with comments, skip empty lines and choose if CSV headers row should be used when creating the XML document.
books
Csv to xml converter examples Click to use
Custom delimiters
This example converts a CSV with a custom column delimiter to an XML file.
hours:minutes:seconds 05:26:30 14:56:21<?xml version="1.0" encoding="UTF-8" ?> <root> <row-0> <hours>05</hours> <minutes>26</minutes> <seconds>30</seconds> </row-0> <row-1> <hours>14</hours> <minutes>56</minutes> <seconds>21</seconds> </row-1> </root>
Required options
These options will be used automatically if you select this example.
Column separating character
Indents with two spaces
Compressed output
This example outputs minified XML after conversion.
post,points,link 1,258k,61ns2w 2,231k,5bx4bx 3,223k,5sfexx<?xml version="1.0" encoding="UTF-8" ?><root><row-0><post>1</post><points>258k</points><link>61ns2w</link></row-0><row-1><post>2</post><points>231k</points><link>5bx4bx</link></row-1><row-2><post>3</post><points>223k</points><link>5sfexx</link></row-2></root>
Required options
These options will be used automatically if you select this example.
Column separating character
Outputs minified result
info
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-csv-to-xml?input=hours%3Aminutes%3Aseconds%0A05%3A26%3A30%0A14%3A56%3A21&char-delimiter=%3A&formatting-spaces=true
dashboard
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 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 a plain text document.
airport_shuttle
Coming soon These xml tools are on the way
Syntax Highlight XML
Preview an XML data structure in your browser.
XML Editor
Edit XML documents in your browser.
Display XML Statistics
Display detailed information about an XML data structure.
Compare Two XML Files
Diff XML documents and show file differences visually.