---
title: "XML to CSV Converter: Nested XML to Rows, Free"
description: "Free XML to CSV converter: paste XML or open a file up to 100 MB. Every field keeps its own column across rows. Runs in your browser, nothing uploaded."
canonical: "https://browser-use.com/tools/xml-to-csv"
last_updated: "2026-11-18"
---

# XML to CSV Converter: Nested XML to Rows, Free

## XML to CSV Converter

Convert XML to CSV in your browser. Pick which element is a row; nested tags and attributes become columns like customer.name and order@id.

## How it works

### Paste XML

Paste XML, open a file up to 100 MB, or drop one on the box. It is read in this tab and never uploaded.

### Check the rows

The element that repeats is picked as the row. Pick another under Rows if you want, and preview the first 50 rows.

### Copy or download

Copy the CSV or download CSV or TSV, with a BOM for Excel if you need one.

### How are columns named?

By path from the row element: nested tags are customer.name, attributes are order@id and customer.@type. A tag that repeats becomes tag.0, tag.1 in every row. Prefixes stay as written, like g:price; xmlns declarations are not data and get no column. A field missing from a row leaves its cell empty, so nothing shifts.

Source: [Namespaces in XML 1.0](https://www.w3.org/TR/xml-names/#ns-qualnames)

### What about mixed text, empty tags and CDATA?

A tag with both text and child tags, like <p>Hello <b>world</b>!</p>, becomes one cell with the text in order: Hello world!. A row element keeps its child columns too. Empty tags, missing tags and whitespace-only text are all empty cells. CDATA becomes plain text, entities are decoded, and comments are dropped.

Source: [XML 1.0 §2.7 CDATA](https://www.w3.org/TR/xml/#sec-cdata-sect) · [§3.1 Empty tags](https://www.w3.org/TR/xml/#sec-starttags)

### Why is my XML rejected?

It must be well-formed: one root element, every tag closed, prefixes declared. Besides &amp; &lt; &gt; &quot; &apos;, named entities like &nbsp; need a declaration, and documents that declare entities are refused, because expanding them can freeze the tab. Use numeric references like &#160; instead. External DTDs are never fetched.

Source: [§2.1 Well-formed](https://www.w3.org/TR/xml/#sec-well-formed) · [§4.6 Predefined entities](https://www.w3.org/TR/xml/#sec-predefined-ent)

### Why do accents look wrong in Excel?

Microsoft says Excel opens a UTF-8 CSV normally if it was saved with a byte order mark (BOM); otherwise it has to be imported. Tick "Add BOM for Excel" before you download.

Source: [Microsoft: opening CSV UTF-8 files in Excel](https://support.microsoft.com/en-us/office/opening-csv-utf-8-files-correctly-in-excel-8a935af5-3416-4edd-ba7e-3dfd2bc4a032)

## Need data from a website first?

Browser Use agents open pages in a real browser, including dynamic ones, and return structured data.

[See AI web scraping](https://browser-use.com/web-scraping)

2 rows, 8 columns

XML

Load exampleOpen .xml file

Runs in your browser, files up to 100 MB. Your XML is never uploaded.

Well-formed XML · 525 B · 17 elements

Rows/orders (1 row)/orders/order (2 rows)/orders/order/customer (2 rows)/orders/order/tag (3 rows)/orders/order/note (2 rows)

DelimiterCommaSemicolonTab (.tsv)Trim spaces around valuesAdd BOM for Excel

One row per element picked under Rows. Attributes become order@id, nested tags customer.name, repeated tags tag.0, tag.1. Quoting follows [RFC 4180](https://www.rfc-editor.org/rfc/rfc4180).

## 2 rows · 8 columns

Copy CSVDownload CSV

order@id

date

customer.name

customer.phone

customer.email

tag.0

tag.1

note

1001

2026-11-02

Ada Park

555-0100

gift

express

Leave at the door, ring "twice"

1002

2026-11-03

Lin Wu

lin@example.com

repeat

Call before 9:00

The download includes all 2 rows.

---

BROWSER USE

- Browser Use Agents: give Browser Use a task and receive completed work. API V4 is current for new integrations.
- Browser Infrastructure: connect your agent or automation to managed browsers through SDK, REST, or CDP. Starts at $0.06/browser-hour.
- Developer tools: Open Source, Browser Harness, SDK, and MCP support the two products above.

[Developer Index](https://browser-use.com/index.md)
[Product Map](https://browser-use.com/llms.txt)
[Full Product Context](https://browser-use.com/llms-full.txt)
[Pricing](https://browser-use.com/pricing.md)
[Cloud Docs](https://docs.browser-use.com/cloud/quickstart)
[Open Source Docs](https://docs.browser-use.com/open-source/introduction)
