XMLSlice
Local processing · No uploads
01 XML, untangled

Turn nested XML into clean rows.

Find repeating records, pick the fields you need, and export a reusable CSV—without sending sensitive files to a server.

100%in your browser
UTF-8& UTF-16 support
ZIPbatch exports
1 Open2 Map3 Export

Drop XML files here

Open one file or apply one mapping to a same-structure batch.

Works withnested elementsattributesbatch ZIPcustom CSV
01Private by design

Raw files are never uploaded or stored.

02Repeatable results

Save mappings as portable recipe files.

03Built for messy XML

Handles nested nodes, attributes and CDATA.

XML to CSV, explained

A private XML to CSV converter for real-world data

XMLSlice turns repeating XML elements into spreadsheet-ready rows. It analyzes the document structure, suggests likely record groups, lets you choose exact fields, and previews the result before creating the CSV.

Conversion happens locally in the browser, making XMLSlice suitable for customer exports, product catalogs, invoices, API responses, SOAP data, and internal records that should not be sent to an unknown conversion server.

How it works

Convert XML to CSV in three steps

  1. 01

    Open your XML

    Choose a local XML file or use the sample. The file remains on your device.

  2. 02

    Map records and columns

    Select a repeating element, review detected paths, and keep only useful fields.

  3. 03

    Preview and export

    Check the first rows, save the mapping as a recipe, and download a UTF-8 CSV.

Flattening rules

How XML structures become CSV columns

XML is hierarchical while CSV is tabular. XMLSlice uses explicit, predictable rules so you can see how each source value will appear in the output.

Rules used to map XML structures into CSV output
XML structureCSV behaviorExample column
Repeated elementsEach selected record becomes one CSV roworder
Nested elementsElement names are preserved as a pathcustomer/name
AttributesAttribute names receive an @ prefix@id
Repeated leaf valuesValues use a configurable separatortags/tag
Missing valuesThe CSV cell remains emptydiscount
Common use cases

Built for exports, migrations, and analysis

Product catalogs

Prepare supplier or ecommerce XML feeds for spreadsheet review and bulk imports.

Orders and invoices

Extract customer, total, status, tax, and line-level data from business exports.

API and SOAP responses

Turn saved XML responses into rows for debugging, reporting, or data analysis.

Legacy migrations

Inspect old XML backups and map selected fields into database-friendly CSV files.

XML conversion library

Guides for real XML structures

Learn how record boundaries, nested paths, attributes, encodings, and browser storage affect the resulting CSV before converting a production file.

Nested data guide

Nested XML

Convert nested XML to flat CSV rows in your browser. Detect repeating records, preserve child paths, preview columns, and export without uploading data.

Read guide →
Large file workflow

Large XML

Convert large XML files to CSV with streaming parsing, Web Worker processing, cancellation, and disk-backed output—all without a server upload.

Read guide →
Attribute mapping

Attributes

Map XML attributes and nested elements to clear CSV columns. Attribute names use an @ prefix, values remain aligned with their record, and files stay local.

Read guide →
Privacy-first conversion

Private conversion

Convert sensitive XML to CSV without uploading the source file. XMLSlice runs locally in your browser with no account, remote parser, or server-side storage.

Read guide →
Encoding guide

UTF-16 XML

Convert UTF-16LE or UTF-16BE XML files to spreadsheet-friendly UTF-8 CSV. Detect byte order and declared encodings locally in your browser.

Read guide →
API response workflow

SOAP XML

Convert saved SOAP XML responses to CSV. Select repeating payload records, preserve namespace-prefixed paths, preview fields, and process files locally.

Read guide →
Catalog workflow

Product feeds

Convert ecommerce and supplier product feed XML to CSV. Extract SKU, price, stock, category, attributes, and nested values locally in your browser.

Read guide →
Complete conversion guide

Complete guide

Learn how to convert XML to CSV: choose record boundaries, flatten nested elements and attributes, handle repeated values, prevent formula injection, and export safely.

Read guide →
Clear by design

Known limits

  • One repeating record group is exported at a time.
  • Repeated leaf values default to | and can use a custom separator.
  • DOCTYPE declarations and external entities are not supported.
  • Maximum practical file size depends on the browser, storage, and device.
Questions and answers

XML to CSV FAQ

Does XMLSlice upload my XML file?

No. XMLSlice reads and converts the file inside your browser. The raw XML is not uploaded to XMLSlice or stored on a remote server.

Can it convert nested XML and attributes to CSV?

Yes. Nested element paths become CSV columns, attributes use an @ prefix, and repeated leaf values are joined in the same cell with a configurable separator.

Can XMLSlice convert multiple XML files at once?

Yes. Select same-structure XML files, map the first file, and export one CSV per source file in a locally generated ZIP archive. Batch ZIP output is capped at 512 MB of generated CSV data.

Which XML encodings are supported?

XMLSlice detects UTF-8, UTF-16LE and UTF-16BE input. It also reads supported encodings declared in the XML header and exports spreadsheet-friendly UTF-8 CSV.

Can XMLSlice process large XML files?

XMLSlice streams the input and runs parsing in a background Web Worker. CSV output is streamed to disk when the browser supports it, with disk-backed or memory fallbacks elsewhere. The practical maximum still depends on the browser, device storage, memory, and XML complexity.

What happens when an XML file contains multiple record lists?

XMLSlice shows the repeating record groups it detects. You choose one group for each CSV export, which keeps the row structure predictable.

Why are DOCTYPE declarations rejected?

DOCTYPE input is disabled as a security precaution. XMLSlice is designed for data records, feeds and exports that do not depend on external entities or DTD processing.