Convert JSON to comma-separated CSV for spreadsheet import and data analysis
Try the JSON to CSV converter with sample data
Convert JSON to CSV format for Excel and data analysis — handles nested objects & arrays
Convert JSON to comma-separated CSV for spreadsheet import and data analysis
Try the JSON to CSV converter with sample data
Use our free JSON to CSV converter to transform your JSON data into CSV format in 3 simple steps
Paste your JSON data into the JSON to CSV converter, or upload a file directly. An array of objects becomes one CSV row per object, and a single object becomes one row. Try Sample: the first order contains two items, and the second adds an email field.
[
{
"order_id": "A-1001",
"customer": {
"name": "Ana Silva",
"city": "Lisbon"
},
"items": [
{
"sku": "A",
"qty": 2
},
{
"sku": "B",
"qty": 3
}
],
"tags": [
"priority",
"gift"
],
"total": 129.5
},
{
"order_id": "A-1002",
"customer": {
"name": "Ben Carter",
"city": "Austin"
},
"items": [
{
"sku": "C",
"qty": 1
}
],
"tags": [],
"total": 42,
"email": "[email protected]"
}
]Watch your JSON to CSV conversion happen instantly. Columns include fields from all records in first-seen order. Nested objects become dot-path columns such as customer.city. In this sample, email is added from the second order, while both items in the first order stay together as JSON in one cell. Simple arrays become comma-separated cells. Values with commas, quotes or line breaks are escaped.
order_id,customer.name,customer.city,items,tags,total,email
A-1001,Ana Silva,Lisbon,"[{""sku"":""A"",""qty"":2},{""sku"":""B"",""qty"":3}]","priority, gift",129.5,
A-1002,Ben Carter,Austin,"[{""sku"":""C"",""qty"":1}]",,42,[email protected]Download the JSON to CSV result as a UTF-8 .csv file, or copy the CSV text to your clipboard. When importing into a spreadsheet app, select a comma delimiter and UTF-8 if those settings are required.
Common questions about converting JSON to CSV online
Edit, format, and beautify JSON
Validate, fix, and inspect JSON
Compare, measure, and map JSON
Convert JSON to other formats
Convert other formats to JSON
Convert, format, fix, and minify XML
Generate code and format other languages