Skip to content
ByteMath

Convert JSON to CSV online without uploading your data

Paste a JSON array of objects and get RFC 4180 CSV instantly. Handles commas, quotes, missing keys and nested values. Data never leaves your browser.

Last updated:

Inputs

Output

id,name,email,city,active,tags
1,Ada Lovelace,[email protected],London,true,
2,Grace Hopper,[email protected],"New York, NY",false,
3,Alan Turing,[email protected],,,"[""math"",""crypto""]"
Input size
302 B
Output size
186 B
Records
3
Output vs input
62 %

Results are engineering estimates for planning. Final designs must follow your local code and be checked by a qualified professional.

This scenario at a glance

Input
ConversionJSON → CSV
CSV delimiterComma (,)
Input[ {"id": 1, "name": "Ada Lovelace", "email": "ada@examp…
Calculated
Outputid,name,email,city,active,tags 1,Ada Lovelace,ada@example…
Input size302 B
Output size186 B
Records3
Output vs input62 %

Engineering notes for this workload

Converting JSON to CSV is a daily task when API data has to go into a spreadsheet, a BI tool or an import form. This converter takes a JSON array of objects, collects every key that appears in any object as a column, and writes one row per object. The sample shows three users with slightly different fields.

Missing keys become empty cells. The third user has no city or active field, so those cells are blank, and the tags field, which only the third user has, becomes an extra column. This union-of-keys behavior avoids silently dropping data, which is a common problem with converters that only use the first object's keys.

Escaping follows RFC 4180: any value containing the delimiter, a double quote or a line break is wrapped in double quotes, and double quotes inside it are doubled. That is why "New York, NY" stays one cell. Nested objects and arrays are written as compact JSON strings, so tags appears as ["math","crypto"] in a single cell. If you need nested fields as separate columns, flatten them first, for example with a script that turns address.city into its own key.

Opening the result in Excel depends on your regional settings. Excel in US English expects commas, while European locales that use the comma as decimal separator expect semicolons. Choose the delimiter accordingly, or import the file through Excel's data import wizard and set the delimiter and UTF-8 encoding explicitly, which also preserves accented characters.

Privacy is built in: the conversion runs in JavaScript inside your browser. Nothing is uploaded, logged or stored, which matters when the JSON contains customer records or other personal data.

For very large files of hundreds of megabytes, a command-line tool such as jq or a short Python script with the csv module is more practical than a browser text box.

Reference table

Data format reference
FormatStandardKey rules
CSVRFC 4180Fields with delimiter, quote or newline are quoted; quotes doubled ("")
CSV (Excel DE/FR/ES)Locale defaultSemicolon delimiter because comma is the decimal separator
JSONRFC 8259UTF-8, double-quoted keys and strings, no trailing commas, no comments
Base64RFC 4648 §4A–Z a–z 0–9 + /, = padding, 4 characters per 3 bytes (+33 %)
Base64urlRFC 4648 §5- and _ instead of + and /, padding often omitted (JWT)

All conversions on this site run locally in your browser.

Questions about this scenario

How do I convert JSON to CSV?

Paste a JSON array of objects into the input. Each object becomes a row and each distinct key becomes a column.

What happens to nested JSON objects?

They are written as compact JSON strings in one cell. Flatten them first if you need separate columns.

Is my JSON uploaded to a server?

No. The conversion runs entirely in your browser.