Data stays in this browser.
Convert JSON to CSV in Your Browser
Turn a JSON array of objects into a downloadable CSV locally, filling missing fields automatically.
What it does
JSON to CSV takes a JSON array of objects and writes one CSV row per object, collecting every key used across the array into the header. Missing fields are filled with an empty cell instead of breaking the conversion. It runs fully in your browser, so exported API responses or app data never leave your device, which suits developers preparing data for a spreadsheet or another tool.
How to use it
- Open a JSON file, or paste a JSON array of objects into the text box.
- Press "Convert to CSV" to build rows in the same box.
- Press "Download current output" to save data.csv.
Example
- Input
- [{"name":"Ada","role":"Engineer"},{"name":"Grace","city":"Paris"}]
- Output
- name,role,city Ada,Engineer, Grace,,Paris
What happens to your file
- Your file or text is processed by code running in this browser tab. It is not uploaded to any server.
- The processing code is downloaded from this site with the page; nothing about your input is sent back.
- The result is created on your device and saved only when you choose to download it.
Limits
- The input must be a JSON array of objects, not a single object.
- Nested objects and arrays are stored as inline JSON text in one cell, not split into columns.
- Output always uses commas as the delimiter.
- Very large arrays are limited by your browser's memory.
Questions
What if the objects don't all have the same keys?
The header combines every key found in any object; a cell is left empty for objects that don't have that key.
What happens with a nested object or array value?
It is written into the cell as inline JSON text rather than split into extra columns.
Does it accept a single JSON object instead of an array?
No. The input must be a JSON array; a single object or other JSON value shows the message "JSON must be an array of objects."
What delimiter does the output CSV use?
Comma. Values containing a comma, quote or line break are automatically wrapped in quotes.