CSV to XML
CSV to XML Converter
Turn a CSV (Comma-Separated Values) file into well-formed XML, in your browser. The first row of the CSV becomes the element names; pick what to call the wrapping root tag and the per-row tag. Output is UTF-8 with optional indentation.
How it maps
Each CSV row becomes one <row> element (or whatever you name it), and each column becomes a child element named after the header. Column names that aren't valid XML names — leading digit, spaces, punctuation — are sanitised to underscores so the output always parses.
Why use this
Some legacy systems (SOAP services, older XSD-driven pipelines) only consume XML. Rather than maintaining a one-off script, paste the CSV here and copy the XML out.
Privacy
100% client-side. The file never leaves the page — there is no server-side conversion. See the privacy policy.