How to use the JSON to CSV Converter tool
- Choose a directionSelect JSON → CSV or CSV → JSON.
- Add your dataPaste it or open a .json or .csv file; JSON Lines with one object per line is accepted too.
- Tune the optionsSet the delimiter, the way arrays are written, and whether numbers and true/false become real JSON types.
- Save or copyLook over the table preview, then download the file or copy the output.
JSON to CSV converter features
- Nested JSON flattenedAn object such as {"address": {"city": "Jaipur"}} becomes a column named address.city, and every key found in any row gets its own column.
- Nesting restoredPick “nested by dots” and address.city-style columns turn back into nested JSON objects.
- Type detectionNumbers, true/false and null are recognised, while codes like 0110001 and long phone numbers stay text.
- Flexible delimitersComma, semicolon for European Excel, tab or pipe, with auto-detection when reading CSV.
- PrivateEverything converts in your browser, so customer lists and exports are never uploaded.
How JSON is turned into a CSV table
A CSV file is a flat grid, whereas JSON can nest data many levels deep. The converter makes each object in a JSON array into a row and each key into a column. Nested objects get dotted column names, and keys present in only some rows still get a column, left blank elsewhere. A few examples:
{"id": 7, "name": "Meera"}produces the columns id and name.{"address": {"city": "Jaipur", "pin": "302001"}}produces address.city and address.pin.{"tags": ["sale", "new"]}produces a tags cell reading “sale; new”, separate tags.0 and tags.1 columns, or the raw text ["sale","new"], depending on your setting.
If the JSON is an object wrapping the list, like {"items": [ … ]} from an API, the converter locates the first array of objects and uses it.
Opening the CSV in Excel without problems
- Garbled text? Enable the UTF-8 BOM option so Excel recognises non-English scripts, accents and the rupee sign.
- All values in column A? Regional settings that use a decimal comma make Excel look for semicolons instead, so switch the delimiter.
- Zeros at the start disappearing? Double-clicking a CSV lets Excel treat codes as numbers. Bring it in through the Text/CSV import and mark the column as Text, or skip CSV and use JSON to Excel, which preserves text.
Converting CSV to JSON for developers
Going from CSV to JSON, the column headings become property names. Turning on type detection converts 42 into a number, false into a boolean and blank cells into null, matching what most APIs and database loaders expect. Anything starting with a zero or longer than 15 digits is kept as a string, protecting postal codes, mobile numbers and identifiers. The “Array of arrays” layout keeps output compact, and JSON Lines suits streaming loaders such as BigQuery, Elasticsearch and MongoDB.
Fields containing quote marks, commas or newlines are escaped as the RFC 4180 CSV specification describes. Check or tidy the resulting JSON in the JSON Formatter, and for workbook files go to Excel to CSV.