JSON to CSV Converter
Convert a flat JSON array of objects into CSV. Keys on the first object become column headers.
Your file is processed in your browser and is not uploaded unless explicitly stated.
Drag & drop a JSON file here
or click to browse
What Does the JSON to CSV Converter Do?
The converter expects a JSON array in which every item is an object. Each object becomes one row, and the keys on the first object define the columns. Upload a .json file or paste JSON text.
Processing stays in your browser. After conversion, the page previews up to 15 rows and provides copy and download controls.
How to convert JSON to CSV
- Upload a .json file or paste an array of objects.
- Select Convert to CSV and check the preview.
- Copy the complete CSV or download it as a file.
When would I use this?
- Exporting API response data into a spreadsheet for review or analysis
- Converting JSON database exports into CSV for import into Excel or Google Sheets
- Transforming structured JSON data into a tabular format for reporting tools
- Preparing JSON data for import into systems that accept CSV but not JSON
- Converting configuration or reference data stored in JSON into a readable table
Common Problems Converting JSON to CSV
- JSON data from APIs or databases cannot be imported directly into Excel or Google Sheets without conversion
- JSON arrays where objects have different keys produce inconsistent tables unless all keys are collated first
- Nested JSON structures (objects within objects) do not map cleanly to a flat CSV format
- Writing a conversion script requires programming knowledge that not all users have
Best Ways to Convert JSON to CSV
- Copy values manually into a spreadsheet — Only practical for very small JSON arrays. Tedious and error-prone for anything beyond a handful of objects
- Write a script — Most programming languages have JSON and CSV libraries. Reliable for complex or deeply nested JSON but requires technical skill
- Use a browser-based converter — Fastest for simple arrays of flat objects. No installation or coding required — just paste or upload your JSON and download the CSV immediately
Things to be aware of
- This tool expects a JSON array of objects — other structures (single objects, primitives, nested arrays) are not supported
- Only keys on the first object become headers; later-only keys are omitted
- Nested objects become "[object Object]" and arrays become comma-separated cell text; neither is flattened
- Numbers and booleans are serialised as CSV text, while null and missing values become blank cells
- Very large JSON arrays may be slow to process in the browser due to memory constraints
- JSON keys with special characters or duplicates may cause unexpected column names in the output
Worked example
A JSON array of objects is converted to a CSV where each key becomes a column header and each object becomes one row.
INPUT
[{"name":"Alice","active":true},
{"name":"Bob","active":null}]
OUTPUT
name,active
Alice,true
Bob,