Skip to content

XML to CSV Converter: XML Records to a Table

Drop or paste XML and its repeated elements open as a CSV table; nothing is uploaded.

Processed on your device. Nothing is uploadedHow to check

Try a sample file:

You can also paste CSV or JSON text with Ctrl+V (⌘+V on a Mac).

Your file is opened in this browser tab only: it is never uploaded or stored anywhere, and it is gone when you close the tab.

  • CSVView and edit.xml
Paste text instead

Pasted text stays in this tab and is never sent anywhere.

Convert XML to CSV in your browser: drop or paste an XML file and the first list of repeated elements, such as every <book> in a <catalog>, becomes the rows. Child elements and attributes become columns, nested elements are flattened into names like author.name, and the table opens in the CSV viewer to check, edit and download. Nothing is uploaded.

Why use XML to CSV

  • Private

    Your file is opened by your own browser and never sent to a server, so nobody else sees it.

  • Attributes kept

    Attributes get columns of their own, such as @id, next to the child elements.

  • Works offline

    After you have used it once, it keeps working without an internet connection.

How it works: convert XML to CSV

  1. Open or paste your XML

    Drop an .xml file, choose it, paste XML into the paste box, or try one of the samples.

  2. Repeated elements become rows

    Your browser's own XML parser reads the file. The first list of repeated elements becomes the rows; their children and attributes become the columns.

  3. Check and edit

    The table opens in the CSV viewer: sort, filter, edit cells and undo before you save.

  4. Download

    Download saves a .csv file; the viewer can also save it as Excel, Markdown, HTML or SQL.

What the XML to CSV converter handles

  • Input: an .xml file or pasted XML text.
  • Rows: the first list of repeated elements, for example every <book> inside <catalog>.
  • Columns: child elements by name, and attributes with an @ in front, such as @id.
  • Nested elements: flattened into dot-named columns such as author.name.
  • Errors: malformed XML shows the parser's message with its line number.

XML to CSV: what it can't do

  • DTD and XSD schemas are not read or checked, and every value comes out as text.
  • Only the first list of repeated elements becomes the table.

XML to CSV: questions and answers

Is my file uploaded?
No. Your browser parses and converts the XML on your device; nothing is sent to a server, and pasted XML stays in this tab.
Which elements become the rows?
The first list of repeated elements. In <catalog><book>…</book><book>…</book></catalog>, each <book> becomes one row.
What happens to attributes?
Each attribute gets a column named with an @ in front: <book id="7"> puts 7 in a column called @id.
How are nested elements turned into columns?
They are flattened with dots. <author><name>Sara</name></author> inside a book becomes a column named author.name.
My XML has an error. What happens?
The page shows the browser parser's error with the line where it stopped. Fix that line and open the file again.
Is the XML checked against a DTD or XSD?
No. Schemas are not read, and every value comes out as text, so numbers and dates are not typed.
How do I convert an XML file to CSV or Excel?
Convert XML to a table by turning each repeated element into a row and its child elements and attributes into columns; Excel can also import XML with Data → Get Data → From File → From XML. In OpenAnyDoc, drop or paste the XML and the table opens in the CSV viewer, where you can download it as CSV or Excel; nothing is uploaded.

Why it's private: your files never leave your browser

Most online viewers upload your file to a server, so a copy of it leaves your device. OpenAnyDoc works the other way round: your browser reads the file and draws it on your screen. Nothing is uploaded, there is no account, and the file is gone from memory when you close the tab, so there is nothing for us to store, see or lose.

How we tell you about new features

Announcements are based on the release date shown to everyone, and nothing is stored on your device or sent anywhere.