EditSafely

Convert XML to CSV

Quickly convert an XML file to a CSV file.

Runs on your device, nothing uploaded

RecordsThe repeated element each row comes from.
Try:

0 chars · 0 lines

Output

Quickly convert an XML file to a CSV file.

Type or paste above to see the result here.

Example: Repeated elements become rows

What you paste never leaves this tab

Convert XML to CSV is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, a customer export full of names and emails is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.

  • No upload
  • No length limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Convert XML to CSV

  1. 1. Paste the XML document. Drop markup with repeated record elements into the input pane, like a rows element containing many row children. The converter finds the repeating structure, says where under the input (Records found at rows.row) and maps each record to one CSV line; a button switches to another repeated element. Include attributes as columns turns an id attribute into an @id column.
  2. 2. Choose whether to emit a header. Leave Header row on to output the child element names as the first line, giving each column a label. Turn it off when you only want the raw values, for example when appending to an existing file.
  3. 3. Copy the rows. Click copy on the output pane and paste the comma-separated result into a spreadsheet or save it as a .csv. Records with missing child elements come out as empty cells, keeping columns aligned.

When to use Convert XML to CSV

Convert XML to CSV rescues tabular data trapped in markup. Exports from older ERP systems, SOAP responses and sitemap-style feeds are structurally just tables, but the tags make them unreadable and unloadable in spreadsheet software. This tool strips the structure down to rows and columns you can actually work with.

  • Opening a legacy export in Excel. The accounting system only exports XML, and the auditor wants a spreadsheet. Paste the export, copy the CSV with its header row, and hand over a file Excel opens without an import wizard.
  • Analyzing a SOAP response. A partner API returns hundreds of record elements per call. Flattening them to CSV lets you sort and filter in Google Sheets instead of scrolling through nested tags in an editor.
  • Auditing a sitemap or feed. You want every URL and lastmod date from a sitemap.xml in a column each. Convert it here, then sort by date to spot pages that have not been recrawled in months.

Examples

Repeated elements become rows

Input

<rows>
  <row><name>Ada</name><age>36</age></row>
  <row><name>Grace</name><age>45</age></row>
</rows>

Output

name,age
Ada,36
Grace,45

About the Convert XML to CSV tool

Convert XML to CSV runs as plain JavaScript in your browser tab, with no server behind it. Quickly convert an XML file to a CSV file. Whatever you put in stays on your device from start to finish.

The tool is part of EditSafely's CSV Tools section, 133 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.

You can shape the output with 3 settings, including Include attributes as columns, Records and Header row, and the result refreshes the moment you change one. A worked example further down the page shows exactly what the tool produces for a real input.

That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.

Frequently asked questions

Is Convert XML to CSV free to use?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.

How much text can I process at once?

There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.

Do I need to sign up or install anything?

No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.

Related tools

All CSV Tools →