CSV to XML Converter
Convert CSV to XML in your browser. Headers like customer.name become nested tags, order@id an attribute, and any header a valid XML name.
Loading tool…
How it works
Paste CSV
Paste CSV, open a file up to 100 MB, or drop one on the box. Comma, semicolon, tab or pipe is detected. Nothing is uploaded.
Check the names
Set the root and row elements if you want. Headers that are not XML names are renamed and listed.
Copy or download
Copy the XML or download it as an .xml file.
How do headers become XML?
Dots nest: customer.address.city is a city element inside address inside customer. @id and order@id are attributes of the row, customer.@type an attribute of customer. tag.0 and tag.1 are two tag elements. These are the columns XML to CSV writes, so a file can usually go to CSV and back (set the row name if it is not found). Turn off "Nest on . and @" to keep one element per column.
Which headers are renamed?
An XML name starts with a letter or _ and holds no spaces, so first name becomes first_name and 2nd phone becomes _2nd_phone. An empty header becomes column_N, a duplicate gets _2. Emoji are replaced and letters stay, though Python's expat (to 2.10) also refuses some newer letters, like Sinhala or Khmer. Every change is listed.
What happens to & < > and control characters?
& < > are escaped, or kept as written inside CDATA if you pick it (a ]]> in a cell splits the section). Control characters XML 1.0 does not allow, like U+0007, are removed and counted, so no illegal character is written.
Which CSV can it read?
Quoted fields can hold the delimiter, line breaks and "" for a quote. CRLF or LF, a UTF-8 byte order mark and a final line break are all fine. Rows with fewer or more cells than the header are converted and listed.
Need data from a website first?
Browser Use agents open pages in a real browser, including dynamic ones, and return structured data.