Turn CSV rows into XML elements, with column names as tag names.
Loading the tool...
How to use CSV to XML
Paste your CSV.
Set the root element name, then copy the XML.
About CSV to XML
Importing a spreadsheet into a system that only speaks XML usually means writing a script. This converter does it for you: each row becomes a row element inside a root element, and every column becomes a child element named after the header.
Header names that are not valid XML tag names, such as ones with spaces or accents at the start, are cleaned up so the result is well formed.
Frequently asked questions
Can I rename the row element?
The row element is called row by default. If you need something else, search and replace it in the result, or convert via JSON and use the single top-level key as the root.
What happens to header names with spaces?
Spaces and other disallowed characters become underscores, so "First Name" becomes First_Name.
Does it add an XML declaration?
Yes by default. You can switch it off in the options.