Free Online CSV to XML and XML to CSV Converter
Convert CSV into XML and XML back into CSV in your browser. Column headings become valid tag names, because a heading with a space or a leading digit is not a legal tag, and ampersands are escaped properly. Going the other way, repeated records are found automatically and nested paths become column names.
| Nothing to show yet. |
Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.
How to Convert CSV to XML
A few steps, and nothing is uploaded.
What to Know About CSV and XML
Tag names, escaping, and why not every XML becomes a table.
Key Features & Capabilities
What this tool does, and what it deliberately does not.
About the CSV and XML Converter
XML refuses to go away, because the systems that insisted on it are the systems nobody is allowed to replace: banks, government filings, logistics, older enterprise software. So the job of turning a spreadsheet export into XML, and of turning somebody XML feed back into something a spreadsheet can read, keeps coming up long after the format stopped being fashionable.
Going from CSV to XML looks trivial and has two traps that both produce a file which will not parse. The first is tag names: a heading like "Order ID" or "2026 total" is perfectly normal in a spreadsheet and illegal as a tag, so it has to be adjusted, and you need to know it was. The second is escaping: one ampersand in "Hodges & Sons" is enough to make the entire document invalid, and the error the receiving system reports will point at a line number rather than at the ampersand.
Coming back the other way, the honest answer is that it depends on the document. CSV is a grid and XML is a tree, so only some trees have a sensible flat form. Records with the same simple fields convert perfectly. Deeply nested documents with repeated children inside each record do not, and a converter that produces a confident looking table from one of those has quietly decided something for you. Flattening nested paths into column names handles most real feeds and stops short of pretending about the rest.
Frequently Asked Questions
Tag names, attributes, nesting and what cannot convert.
Every Other CSV Tool
16 more tools in this set. All free, all in your browser.