CSV → XML
Convert data in CSV format to XML format. As in the example below, paste CSV on the left and the XML result appears instantly on the right.
Example
CSV
id,name,role
1,Ada,admin
2,Linus,editorXML
<?xml version="1.0" encoding="UTF-8"?>
<rows>
<row>
<id>1</id>
<name>Ada</name>
<role>admin</role>
</row>
<row>
<id>2</id>
<name>Linus</name>
<role>editor</role>
</row>
</rows>How to Convert
- Select CSV as the source format and XML as the target format.
- Paste your CSV data into the input box on the left.
- Copy or download the XML result generated on the right.
Notes
- Every conversion happens inside the browser, and the data you enter is never sent to a server.
- Since CSV can express only a tabular structure, nested objects and arrays are stored inside cells as JSON strings.
- XML conversion uses a convention that maps attributes to @name, text to #text, and repeated elements to arrays.