CSV to JSON Converter
CSV rows become a JSON array, keyed by the header row.
Turn CSV rows into well-formed XML. The first row gives the element names and every later row becomes a record. Runs in your browser.
Your browser is preparing the tool. It runs 100% locally.
Paste CSV and get well-formed XML. The first row is read as headers and becomes the element names; each following row becomes a row element with one child per column. The whole thing is wrapped in a single rows root, with a UTF-8 XML declaration, and any reserved characters in your values are escaped. Your browser does the conversion, so the file is never uploaded.
This converts comma-separated data into XML. The first line of your CSV is read as the column headers, and those header names become the XML element names. Each remaining line becomes one record.
The output is a complete, well-formed XML document: a UTF-8 declaration, a single rows root element, and a row element for every data line, each holding one child element per column.
Paste or type your CSV. The first row is parsed as headers, and the parser understands quoted fields and doubled quotes.
Each data row becomes a row element. For every column, the tool writes a child element named after the header, with the cell value inside. Spaces in a header are replaced with underscores so the element name is valid.
Values containing the ampersand, less-than or greater-than characters are escaped to their XML entities. Copy the result or download it as a .xml file. Everything happens in your browser.
First CSV row = column headers = element names (spaces become underscores)
Each later row = one <row> element
Each cell = a child element named after its header
Everything sits inside one <rows> document rootThe CSV name,age with rows Alice,30 and Bob,25 becomes a <rows> root holding two <row> elements, the first with <name>Alice</name> and <age>30</age>.The wrapper names rows and row are fixed by the tool; only the column headers change the element names.
Your browser parses and converts the CSV. There is no server, and the data is never uploaded.
The data never leaves your device, so even sensitive records stay private.
You don't need an account and the site keeps no copy, so the conversion is gone once you close the tab.
| Input | CSV (first row = headers) |
|---|---|
| Output | Well-formed XML (.xml) |
| Root / record | rows / row (fixed names) |
| Declaration | UTF-8 XML prolog |
| Escaping | Ampersand, less-than, greater-than |
| Data types | All values are text |
| Processing | 100% in-browser |
The first row must be your header row, because those names become the element tags. If your CSV has no header line, the first record is consumed as the headers.
Header sanitisation only replaces spaces with underscores. A header that starts with a digit or contains other characters XML forbids in a name (such as a slash, a bracket or the ampersand) would produce an element name XML rejects, so keep headers simple and alphanumeric.
Every value is written as element text, with no attributes and no data types. A number, a date and a word all come out as plain text inside an element.
The wrapper element names, rows and row, are fixed by the tool and not derived from your file. If you need different names, rename them in the output.
Empty cells become empty elements. Values are escaped for the ampersand, less-than and greater-than characters so the document stays well-formed.
Convert a spreadsheet export into the XML an older API or import routine expects.
Turn a few rows of CSV into XML to test a parser or a stylesheet.
Generate a simple XML data file from tabular data without writing code.
See at a glance how your columns map to a nested element structure.
If you need attributes, typed values or custom element names, edit the output or use a dedicated XML mapping tool. To go the other way, use the XML to JSON converter and then JSON to CSV.
Builds XML in your browser from your CSV: the header row becomes element names (spaces turned into underscores), each data row becomes a row element, and the ampersand, less-than and greater-than characters in your values are escaped so the result stays well-formed. No copy goes to a server.
CSV rows become a JSON array, keyed by the header row.
Flatten a JSON array of objects into CSV columns.
Turn everyday Markdown into clean HTML in your browser.
Pasted CSV becomes a real .xlsx, with leading zeros kept.
Pull the first sheet of a workbook out as plain CSV.
Each spreadsheet row becomes a JSON object keyed by the header.
The file never leaves your computer, and you don't need an account.