CSV to XML Converter
Turn a table into XML for an import, feed or integration. Each row becomes a row element and each column a child element, with every value escaped correctly. No DTDs, entities or processing instructions are ever written. Everything is processed in your browser; your data is not uploaded.
1. Data and XML structure
Local onlyProcessed in your browser; your files and data are not uploaded or stored. Formulas, macros and scripts in your data are never run.
2. XML output
Live previewThe output never contains a DTD, entity declarations or processing instructions; only the standard XML declaration is written, and you can turn it off. Every generated document is checked by the browser's XML parser before it is offered.
Data is processed in your browser's memory. Limits: 20 MB per file, 200,000 rows, 1,000 columns and 3,000,000 cells.
About CSV to XML Converter
CSV to XML Converter turns a CSV or TSV table into well-formed XML. Each row becomes a row element and each column a child element, using your choice of root and row element names, with headers made into safe XML names and every value escaped.
Many integrations, feeds and legacy systems still expect XML. Hand-writing it means escaping ampersands and angle brackets and fixing headers with spaces. This tool does both reliably, keeps original header names when it has to change them, and never writes DTDs, entities or processing instructions.
Step by step
- Upload or paste the table.
- Enter the root element and row element names.
- Choose header-named elements or field elements with a name attribute.
- Decide about the XML declaration and empty cells.
- Review the XML text, then download or copy it.
What it offers
- Custom root and row element names with validation
- Safe normalisation of invalid header names
- Original header kept in a name attribute when changed
- Full escaping of &, < and > and quotes in attributes
- No DTD, entities or processing instructions
- Self-check of the generated XML before download
Tips for best results
- Use short, simple headers that are already valid XML names.
- Choose field elements when headers contain many spaces or symbols.
- Keep the XML declaration for systems that expect it.
- Validate the XML against the receiving system's schema.
Why people use it
Well-formed
Every file passes an XML parser check.
Safe
No DTDs, entities or processing instructions.
Private
Converted locally in your browser.
Common questions
This runs entirely in your browser
No file or text you enter here is uploaded. Encoding and decoding happen on your device using native browser APIs — close the tab and nothing remains on a server.