CSV to XML Converter
The CSV to XML converter writes one XML element per CSV row, using the header names as child element names. Element names are sanitised so the output is always well-formed, and values are escaped correctly.
Your result will appear here.
Not sure where to start? Use Load example.
Results update automatically and are calculated on your device. Nothing you type is sent to a server.
Runs in your browser. Processing happens entirely in your browser. Nothing you enter is sent to Delimiter.live.
How to use the CSV to XML Converter
- Paste your CSV or load a file.
- Name the root and record elements to match the schema you are targeting.
- Copy the XML or download it as an .xml file.
Example
name,age Ada,36
<records>
<record>
<name>Ada</name>
<age>36</age>
</record>
</records>
Common use cases
- Producing an import file for a system that only accepts XML.
- Building a small product feed from a spreadsheet.
- Creating XML fixtures for testing a parser.
Limitations and things to watch for
- XML element names cannot start with a digit or contain spaces, so header names are sanitised: spaces become underscores, invalid characters are removed and a leading digit is prefixed with an underscore. The original header is preserved as a name attribute when sanitising changes it.
- Values are escaped for XML, and control characters that XML 1.0 forbids are stripped rather than producing an invalid document.
- The output has no schema or namespace declaration; add those in your target system if it requires them.