JSON CSV Converter
Convert a JSON array to a CSV table, or CSV back to a JSON array, with a delimiter you choose.
Drag file here or
The keys of the first JSON object become the CSV header, and each object becomes one row. Going the other way, each CSV row becomes an object in a JSON array indented by 2 spaces. Conversion happens in the page. The direction switches by file extension.
[{"id":1,"name":"Kim","tags":["a","b"],"addr":{"city":"Seoul"},"memo":"15\" monitor","ok":false,"x":null},
{"id":2,"name":"Lee","phone":"010"}]
| Column | First-row value | Why |
|---|---|---|
id, name | 1, Kim | Copied as is |
tags | "a,b" | Arrays are joined with commas, then quoted because of the comma |
addr | [object Object] | Objects are not flattened |
memo | "15"" monitor" | Double quotes inside a value are doubled |
ok, x | false, empty | null becomes empty |
The header comes from the first object only. The second object's phone gets no column, and 010 is dropped without a warning, so put the object with the most keys first. Flatten nested objects yourself, for example "addr_city":"Seoul".
CSV to JSON
Cells that look like numbers become numbers; everything else stays a string. 007 turns into 7 and loses its leading zero, 1e3 becomes 1000, true stays the string "true", and an empty cell becomes "". Excel may strip leading zeros from exported IDs, so import that column as text.
CSV is cut into lines first, so a line break inside quotes is not understood. Turning First Row as Header off names columns col1, col2. If Korean text looks garbled in Excel, import with UTF-8; if everything lands in one column, set Delimiter to ;. Downloads are converted.csv or converted.json. For YAML, feed the JSON to the YAML JSON converter.