Get started
HomeData & ConvertersXML to CSV
Data & ConvertersRuns in your browser · files never uploaded

XML to CSV

Flatten XML to rows

4.7· 75 votes
Your file never leaves this browser. Everything runs on your device — no uploads, no server storage, no retention.How it works →
XML input300 chars
CSV output0 chars

What is XML to CSV?

Flatten XML records into a CSV spreadsheet. Auto-detects the repeated record element (e.g. `<book>` inside `<catalog>`), expands nested elements using dot paths, and keeps attributes as separate columns prefixed with "@". Great for data sources that still publish XML — old bank exports, some RSS feeds, and enterprise APIs.

How do I use XML to CSV?

  1. Paste XML into the input panel.
  2. The tool auto-detects the record array; its path is shown above the output.
  3. Pick a delimiter and copy / download.

When should I use XML to CSV?

XML to CSV is the right tool for tabular XML. For tree-preserving conversion to JSON, use XML to JSON. For minor formatting cleanup without changing format, use XML Formatter.

Frequently asked
How does it decide which XML elements become columns?

Children of a repeating element become rows; their sub-elements become columns. Pick the repeating element (the "row selector") in the dropdown — the tool suggests likely candidates.

What happens to attributes?

By default, attributes become columns named @attributeName. Toggle "Merge attributes with elements" to blend them into the main key space.

Does it handle namespaced XML?

Yes — prefixes are preserved in column headers. Use the "Strip namespaces" toggle if you want cleaner column names.

Is my file uploaded anywhere?

No. Everything runs in your browser. Your files never leave your device, and there is no server component for this tool.

Related in Data & Converters
CSV to JSON
JSON to CSV
Excel to CSV
CSV to Excel
JSON to Excel
TSV to CSV
Markdown to HTML
HTML to Markdown