How JSON becomes a table
Each object in the array becomes a row, and each field becomes a column. Columns appear in the order they are first seen, and an object that lacks a field leaves that cell empty.
| JSON value | In the CSV cell |
|---|---|
"Ana" | Ana |
12345678901234567890 | 12345678901234567890, every digit kept |
true / false | true / false |
null | empty |
{"city": "Jakarta"} | a column address.city (Flatten) or {"city":"Jakarta"} (JSON text) |
["a", "b"] | ["a","b"] |
Cells that contain the delimiter, a double quote or a line break are wrapped in double quotes, and quotes inside are doubled, as in RFC 4180. Excel, Google Sheets, LibreOffice and pandas all read this.
Opening the file in Excel
- Delimiter. Excel splits columns with your region's list separator. With Indonesian or most European settings, choose Semicolon; with English (US) settings, Comma.
- Characters. Keep "UTF-8 mark for Excel" ticked. Without it, Excel on Windows shows names like José as José.
- Long numbers. Excel shows numbers longer than 15 digits in scientific notation and drops the rest. For IDs, import the column as Text (Data → From Text/CSV).
CSV to JSON
The delimiter is detected from the first line (comma, semicolon, tab or pipe). With a header row, every row becomes an object; without one, an array of arrays. Columns named with dots, such as address.city, are rebuilt into nested objects, so a file made here converts back to the same shape.
A CSV file has no types: every cell is text. "Detect numbers and true/false" turns numbers and true/false/null back into JSON values, but keeps values with leading zeros as text. Empty cells stay empty strings.
Example
An API response with a data array of three users becomes a CSV table with the columns id, name, address.city, tags and active. The name Budi, S.Kom contains a comma, so it is quoted.
Questions
How are nested objects converted?
With "Flatten" on, each nested field gets its own column, named with dots: {"address": {"city": "Jakarta"}} becomes a column address.city. With it off, the whole object goes into one cell as JSON text. Arrays always go into one cell as JSON text, because spreading them over numbered columns would give every row a different shape.
My JSON is an object, not an array. What is exported?
The converter looks for arrays inside it, such as the "data" or "items" list of an API response, and exports the largest array of objects. If there are several, choose another one from the list. A document without any array becomes a single row.
Excel puts everything in one column. What do I do?
Excel expects the list separator of your region. In Indonesia and much of Europe that is a semicolon, so choose Semicolon before downloading. Keep "UTF-8 mark for Excel" ticked so accented and non-Latin characters show correctly.
How are CSV values typed when converting to JSON?
With "Detect numbers and true/false" on, 42, 3.5, true, false and null lose their quotes. Values with leading zeros, such as 007 or postcodes, stay text so the zeros are kept. Numbers keep their exact digits, so long IDs are not rounded.
What if CSV rows have different numbers of fields?
The rows are still converted and the line numbers are listed as warnings. Missing fields become null, and extra fields are named column_4, column_5 and so on.
Is my data uploaded?
No. The conversion and the downloaded file are made in your browser. Only your choice of options is remembered on this device, never the data.
Support this site
The tools are free and need no account. If one saved you time, a small donation helps keep them running.
Want a tool or feature? Suggest it for free, or donate and write your request in the message. Supporters' requests are looked at first.