How to use it
- Paste your XML into the input box, upload a .xml file, or drop a file onto the box.
- The CSV appears as you type.
- Copy the result or download it as a .csv file.
Good to know
- Nested objects become dotted column names, so supplier.city gets its own column. Arrays become numbered columns: tags.0, tags.1 and so on. If the data is a list, each entry becomes one row.
- Attributes become keys that start with @, and text next to child tags becomes #text. A tag that appears once becomes a single value; a tag that repeats becomes a list.
About the formats
XML
XML wraps data in named tags, with optional attributes. It is still common in SOAP web services, RSS feeds, Office files and enterprise systems.
CSV
CSV (comma-separated values) stores a table as plain text: one row per line, with columns split by commas. Excel, Google Sheets and almost every database can import and export it.
Questions
- Is my data uploaded anywhere?
- No. The conversion runs in your browser with JavaScript. Your data never leaves your device, and the tool keeps working if you lose your connection after the page has loaded.
- What happens to nested XML?
- It is flattened. Each nested value gets a column named after its path, such as supplier.city or tags.0. Empty lists and empty objects become empty cells.
- Can I convert CSV back to XML?
- Yes. Use the CSV to XML converter, or press the swap button above the editor.