CSV to XML Converter
Turn CSV rows into XML elements, and XML elements back into CSV.
Runs entirely in your browser.
Convert Between CSV and XML
About CSV to XML Converter
Each CSV row becomes one <record> element, with a child element per column named after the header. Header names are cleaned up into valid element names - spaces become underscores, and a name that starts with a digit gets a leading underscore, since XML does not allow that.
Going the other way, each repeated child element becomes a column. The columns are taken from the first record, so records that carry extra fields will have them dropped - XML is a tree and CSV is a grid, and not every tree fits.
Other CSV Tools
- CSV to TSV — and back
- CSV to YAML — and back
- TSV to JSON — and back
- JSON to CSV — and back
- Change CSV Separator — commas to semicolons, tabs or pipes
- Transpose CSV — swap rows and columns
- Find Incomplete CSV Records — rows with missing or extra fields
- Insert a CSV Column — add a column at any position
- Swap CSV Columns — exchange two column positions
- CSV Viewer — browse a CSV as a sortable table