Convert XML to CSV
Convert XML to CSV locally in your browser.
Tool workspace
Convert XML to CSV in your browser. Repeating sibling elements under the root become rows; otherwise the root is one record. Attributes and direct child text become columns. Nothing you paste is uploaded.
How it works
Conversion runs entirely in your browser. When the document root’s element children all share the same tag name, each child becomes a CSV row. Otherwise the root is treated as a single record. Columns come from element attributes and direct child element text. Fields are escaped for commas, quotes, and newlines (RFC 4180).
Empty input clears the result—no error. Invalid XML shows a clear parse error. Deep nested trees beyond direct children are flattened via child text content only.
Examples
- <root><item id="1"><name>Alice</name></item><item id="2"><name>Bob</name></item></root> → id,name rows
- <person><name>Ada</name><role>Engineer</role></person> → single record
- Values with commas → quoted CSV fields
Privacy
FAQ
Is my XML uploaded?
No. Conversion runs entirely in your browser. We do not log or store what you paste.
How are rows detected?
If every child element under the root uses the same tag name, each child is a row. Otherwise the root itself is one record (attributes plus direct child text as columns).
Do I need an account?
No. All published tools work for guests without login.