Back to Tools
CSV to XML
CSV to XML Converter
Map CSV rows to XML nodes with custom root/element names
π·οΈ Custom Nodesπ¦ Nested XML
About the CSV to XML
Convert CSV rows into XML elements.
How to use the CSV to XML
- Paste your CSV or click Sample.
- Choose the Delimiter, the Root Element and the Row Element names.
- Tick First row = Headers to use the header names as tags, and Fields as Attributes if you prefer attributes.
- Press Convert to XML and copy the result.
Worked example
A row Ann,30 with headers name,age becomes <row><name>Ann</name><age>30</age></row>.
Tips
- Header names must be valid XML names: no spaces and no starting digit.
Frequently Asked Questions
Yes. Tick Fields as Attributes.