Skip to content
toolgrid

No tool found. Try another word.

XML to CSV Converter

Convert XML to CSV: repeating elements become rows, their child elements and attributes become columns. The row element is detected automatically.

Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.

How to use the XML to CSV Converter

  1. 1 Paste XML or open an .xml file.
  2. 2 Check the row element (detected automatically) and the delimiter.
  3. 3 Copy or download the CSV.

About the XML to CSV Converter

XML exports, product feeds and sitemaps usually consist of one element repeated many times, such as <product> or <url>. The converter finds the element that repeats most, turns each occurrence into a row and its child elements into columns.

Attributes become columns with an @ in front (@id), nested elements become columns like price.@currency or address.city, and an element that occurs several times in one record gets a numbered column (tag, tag_2). Elements with only text become a single "value" column.

If the guessed row element is not the one you want, choose another one from the list. The XML must be well-formed; errors are reported with their line.

Frequently asked questions

Which element becomes a row?

The element name that occurs most often. Choose another one in the list if needed, for example <item> instead of <category>.

How are attributes handled?

Every attribute becomes a column starting with @, such as @id or price.@currency.

Can I convert a sitemap.xml?

Yes: every <url> becomes a row with loc, lastmod and priority columns.

What about namespaces?

Element names are used with their prefix, such as g:price in a Google Shopping feed.