CSV to XML Converter

Turn CSV rows into XML elements with your own root and row tag names.

100% Client-Side Processing — your data never leaves this browser. Works offline. How it works

0 lines • 0 bytes Ready
Tip: drop a file anywhere on the editor
Input
Paste, type or drop a file
1
Result
Updates as you type
// Output will appear here…
About this tool

How the CSV to XML works

Convert CSV to well-formed XML. Each row becomes an element and each column a child tag, with custom root and row tag names. Free and client-side.

How to use the CSV to XML

  1. Paste CSV or upload a .csv file.
  2. Set the root and row tag names.
  3. Copy or download the XML.

CSV to XML example

Input
id,name
1,Keyboard
2,Monitor
Result
<?xml version="1.0" encoding="UTF-8"?>
<rows>
  <row>
    <id>1</id>
    <name>Keyboard</name>
  </row>
  <row>
    <id>2</id>
    <name>Monitor</name>
  </row>
</rows>

When to use it

  • Feeding spreadsheet data to systems that only accept XML.
  • Creating product feeds and catalogue imports.
  • Producing test data for SOAP or legacy integrations.

Tip: XML tag names cannot start with a digit; such column names are adjusted automatically.

Custom tags

Choose the root tag (for example products) and the row tag (product).

Safe tag names

Column names with spaces or symbols are turned into valid XML tag names.

Escaped content

Characters such as &, < and > are escaped so the XML stays well-formed.

Quoted CSV support

Commas and line breaks inside quoted fields are kept in the right element.

FAQ

Common questions

What does each row become?

One element named by the row tag, with one child element per column.

Are empty cells included?

Yes, as empty elements, so every row has the same structure.

Can I convert back?

Yes, XML to CSV turns repeated elements back into rows.

Is the data uploaded?

No, the XML is generated in your browser.