Turn JSON or XML into CSV
Flatten a JSON document or an XML row collection into CSV, then add a column on the CSV page. Parsing stays in the browser, and the text is not uploaded.
Last updated:
You have JSON records, or an XML collection of rows, and you need a CSV with one extra column. The work is a conversion to CSV and then a column edit. Both stay on the page.
The input is JSON text, or XML text, not a spreadsheet. A workbook formula is a different tool, and that tool keeps the cached value rather than recalculating.
- For JSON, open JSON to CSV and paste the document or open a local file when the page offers one. The converter flattens records into columns, including nested objects and arrays.
- For XML, open XML to CSV instead. It flattens one row collection, including attributes and nested elements. Do not run it after the JSON tool. The two converters are alternate starts.
- Open CSV Column Adder with that CSV. Add the header and the value that should be copied down the rows.
- If you need JSON again, CSV to JSON reads the flat rows. It does not restore nesting that the first conversion had already flattened.
The expected output of the column step is CSV text. You can copy it or hand it to another CSV tool. The handoff is one result in this browser for 30 minutes. It is not written into the URL.
CSV here targets flat rows of the kind described in RFC 4180. JSON text follows RFC 8259. XML follows the syntax in the XML specification. A document the parser rejects is reported. It is not silently repaired.
A saved Tool Chain can record a successful JSON-to-CSV step and the column step when each recorded output type matches the next tool. The saved record does not contain the document. Batch processing is for files the first step accepts. See Run a saved Tool Chain on local files. Structured data files covers Office files, cached formulas, and the parts these tools leave unchanged.
Questions
Does this workflow upload the JSON or XML?
No. JSON to CSV, XML to CSV, and CSV Column Adder parse the text in the browser. The document is not sent to a server to be converted.
Will nested JSON survive as nested CSV?
No. JSON to CSV flattens nested objects and arrays into columns. Later CSV tools edit those flat rows. They do not rebuild the original tree.
Can I start from XML instead?
Yes. XML to CSV flattens one XML row collection, including attributes and nested elements, and that CSV can continue into CSV Column Adder. It is a different first step, not a step after JSON.
Does a saved chain keep the document?
No. A saved Tool Chain stores the steps and the output type. It does not store the JSON, XML, or CSV text.

