XML Converter: CSV, Excel, YAML & Text
Work with XML, YAML, spreadsheet data, and developer utilities locally in your browser.
Work with XML, YAML, spreadsheet data, and developer utilities locally in your browser.
Choose a conversion, paste your document and click Convert. Each choice has its own link, so you can bookmark the one you use: XML to CSV, XML to Excel, XML to YAML, XML to text, Excel to XML and YAML to Excel. For XML to JSON with attribute prefixes, array control and type detection, use the dedicated XML to JSON converter; SOAP envelopes and WSDL files work there too.
Most XML exports are a list of records: <orders> containing many <order> elements, or <catalog> with many <book>. The converter scans the whole tree, finds the element name that repeats most often under one parent and turns each of those elements into one row. Inside a record, child elements become columns, attributes become columns prefixed with @, and deeper nesting is flattened into dotted column names. Columns are the union of every record, so a field that appears in only some records leaves empty cells instead of shifting the row.
<orders>
<order id="1"><sku>A1</sku><qty>2</qty><note>a, "b"</note></order>
<order id="2"><sku>B2</sku><qty>5</qty></order>
</orders>
XML to CSV gives:
@id,sku,qty,note
1,A1,2,"a, ""b"""
2,B2,5,
Values with commas, quotes or line breaks are quoted the RFC 4180 way, so the file opens correctly in Excel, Google Sheets, LibreOffice and pandas. XML to Excel produces the same table separated by tabs: copy it and paste into cell A1, and the spreadsheet splits it into columns without an import dialog.
The root element becomes the top-level key. Child elements become nested keys, repeated elements become YAML lists, attributes are kept, and text values that look like numbers or booleans are typed. This is useful for moving Maven, Android or .NET XML configuration into YAML-based tools such as Kubernetes, GitHub Actions or Ansible. The YAML library loads from a CDN the first time you use it.
Strips every tag and keeps only the text content: one line per child of the root element, with the text nodes inside it joined by spaces. In the example above the output is A1 2 a, "b" and B2 5. Use it to feed XML content into a word counter, translation tool or search index.
Copy cells from Excel or Google Sheets (they paste as tab-separated text) or paste CSV lines. Each line becomes a <row> and each value a <cell>, inside a <rows> root with an XML declaration. Characters that are special in XML, such as & and <, are escaped rather than removed. If you need named elements per column, convert the sheet to JSON with Excel to JSON first, then use JSON to XML.
YAML to Excel takes a YAML list of objects (for example an inventory or a fixtures file), flattens nested keys into columns and outputs a tab-separated table ready to paste. XML to escaped string turns the document into one JSON-style string literal with quotes and line breaks escaped, ready to embed in JavaScript, JSON payloads or test fixtures.
Everything runs in your browser, so the limit is your device's memory. Files of several megabytes convert in a second or two on a typical laptop.
The document has no repeating element, so the whole root is treated as one record. Check that your records share the same element name, for example many <item> elements.
Yes. Elements are matched by their full tag name including any prefix, such as ns:item, so prefixed documents convert as long as the prefix is consistent.
No. Parsing and conversion happen in your browser; nothing is sent to a server.