Input (JSON)
[
{ "name": "Ada", "age": 36 },
{ "name": "Linus", "age": 54 }
]The JSON ↔ CSV converter flattens an array of JSON objects into comma-separated rows and parses CSV back into JSON records. Object keys become the header row, and each object becomes a data row. This is ideal for moving API data into spreadsheets like Excel or Google Sheets, or for turning exported CSV reports into structured JSON your code can process directly.
JSON is a hierarchical format built from objects and arrays, while CSV (Comma-Separated Values) is a flat, tabular text format where each line is a record and fields are separated by a delimiter, typically a comma. CSV has no native support for nesting, so converting from JSON works best on a uniform array of flat objects; the converter quotes fields that contain commas, quotes, or newlines to keep the output well-formed.
The main file is the entry point for each run.
Use the Input panel to pipe standard input to your program when it needs data.
Run sends your code to a fresh hosted runtime and streams the result into the output panel.
Your draft stays in this browser, and Share creates a separate snapshot link.
[
{ "name": "Ada", "age": 36 },
{ "name": "Linus", "age": 54 }
]name,age
Ada,36
Linus,54id,city
1,"Paris, FR"
2,Berlin[
{ "id": "1", "city": "Paris, FR" },
{ "id": "2", "city": "Berlin" }
][
{ "sku": "A1", "price": 9.99, "inStock": true },
{ "sku": "B2", "price": 4.5, "inStock": false }
]sku,price,inStock
A1,9.99,true
B2,4.5,falsename,quote
Ada,"She said ""hi"""[
{ "name": "Ada", "quote": "She said \"hi\"" }
][
{ "id": 1, "label": "line1\nline2" }
]id,label
1,"line1
line2"[
{ "id": 1, "name": "Ada", "note": null },
{ "id": 2, "name": "Linus", "note": "vip" }
]id,name,note
1,Ada,
2,Linus,vipsku,price,qty
A1,9.99,2
B2,4.50,5[
{ "sku": "A1", "price": "9.99", "qty": "2" },
{ "sku": "B2", "price": "4.50", "qty": "5" }
]The editor uses Monaco, the engine behind VS Code, with language-aware editing tools and familiar keyboard controls.
Paste an array of JSON objects to flatten it into comma-separated rows.
Paste CSV to parse it back into a JSON array of records.
Object keys form the header row; each object becomes one data row.
Fields containing commas, quotes, or newlines are quoted to stay well-formed.
Works best on a uniform array of flat objects, since CSV has no nesting.
The header row becomes object keys when parsing CSV back to JSON.
Moving API data into Excel or Google Sheets.
Turning exported CSV reports into structured JSON your code can process.
Flattening and parsing happen in your browser — spreadsheet data never leaves it.
Safe for exports containing personal or business records.
Output
CSV output