Skip to content
CSVTidy
Free tool

Convert CSV to XML.

Turn tabular data into well-formed XML with your choice of root and row element names. Column headers become tag names, sanitized so spaces and symbols produce valid XML.

Everything runs in your browser. Nothing is uploaded.

Drop a CSV or Excel file here

Or choose a file — nothing leaves your browser.

Common questions

What happens to headers that aren't valid XML tag names?

They are sanitized — 'first name' becomes first_name, and a header starting with a digit has the leading digits stripped. Headers with no letters or digits fall back to 'field'.

Are special characters escaped?

Yes — &, <, >, " and ' are converted to XML entities.

Is my file uploaded anywhere?

No. The file is parsed and processed entirely in your browser using JavaScript. It never leaves your device, and nothing is stored on our servers.