Paste JSON into the Quick paste box and the tool flattens nested objects into columns and writes CSV on the right. It handles table-shaped data only, so each item of the top-level array becomes one row.
Runs entirely in your browser. Your data is never uploaded. Tiếng Việt
This usually comes up when an API response has to open in Excel or load into a system that only takes CSV. The trouble is nesting: CSV is flat and cannot hold an object inside an object. With Flatten nested objects (a.b.c) switched on, customer.name becomes its own column and the items array splits into order.items.0, order.items.1. This page opens with that option on and a UTF-8 BOM added.
Quick paste box and press Load into table ↵, or use Import file with a .json file.⚙ Options on the CSV tab, pick the delimiter and decide whether to add a BOM.Copy result to paste elsewhere, or Download file to download a .csv.The keys customer.name and order.total were two levels deep and are now flat columns. Order A2 has a single item, so order.items.1 and order.items.2 are empty. The column count is the union of keys across every element.
[
{
"id": "A1",
"customer": {
"name": "Anna Reed",
"city": "London"
},
"order": {
"total": 450,
"items": [
"book",
"pen"
]
}
},
{
"id": "A2",
"customer": {
"name": "Ben Cole",
"city": "Leeds"
},
"order": {
"total": 1250,
"items": [
"backpack"
]
}
},
{
"id": "A3",
"customer": {
"name": "Cara Lin",
"city": "Bristol"
},
"order": {
"total": 299.5,
"items": [
"notebook",
"pen",
"ruler"
]
}
}
]id,customer.name,customer.city,order.total,order.items.0,order.items.1,order.items.2
A1,Anna Reed,London,450,book,pen,
A2,Ben Cole,Leeds,1250,backpack,,
A3,Cara Lin,Bristol,299.5,notebook,pen,ruler=, +, - or @. The tool puts an apostrophe in front, so the exported value differs from the original..0, .1, .2 columns for the whole table, even for rows without those items. Delete extra columns in the grid if you need only the first few.a.b and an object a holding b produce the same column name, so you get one column and one of the two values overwrites the other. Rename the key in the source JSON before loading it into the grid.450 in the CSV is plain digits with no type. Whatever reads the file guesses the type.Add UTF-8 BOM on for that case.Each array item gets its own column with a numeric suffix, such as order.items.0 and order.items.1. Elements with fewer items leave the later columns empty.
Yes. An object with a single key holding an array of objects is read as that array. An object whose values are arrays is read with one column per key.
Not automatically. A column called a.b.c returns as a flat key, not as nested objects. If you need the nesting back, rebuild it in code.
No. The JSON is read and converted in your browser, and the page does not upload it.
That is path notation: customer.name means the key name inside the object customer. Rename the column in the grid if you want something shorter.