JSON to CSV Converter
Convert a JSON array of records to downloadable CSV or TSV.
Input & settings
What this tool does
JSON to CSV reads a JSON array of objects and builds one header from every key it finds. Missing keys become empty cells. Nested objects and arrays are written with JSON.stringify inside a single cell. They are not flattened into extra columns. Fields that contain the delimiter, a quote, or a line break are quoted, and quotes inside them are doubled.
How to use it
- Paste an array of objects or open a JSON file up to 10 MB.
- Choose comma, semicolon, or tab.
- Choose Convert to CSV, then copy or download the table.
Practical example
Two records with name and city produce a header row and two data rows. A city value of New York needs no extra quotes. A value that contains a comma is wrapped in quotes.
Tips
A cell whose text begins with =, +, @, or - after optional spaces gets a leading apostrophe so a spreadsheet is less likely to treat it as a formula. The tool still does not promise that every spreadsheet will ignore that text. At most 100,000 records and 1,000 columns are accepted.
Questions
Will nested objects become extra columns?
No. A nested object or array is serialized into the cell for that key.
What happens when records have different keys?
The header is the combined set of keys. A record that lacks a key gets an empty cell.
How are quotes and line breaks escaped?
The field is wrapped in double quotes. Each quote inside it is doubled. Rows are separated with CRLF.
Are booleans and numbers preserved?
They are written as text, such as true or 12. Null becomes an empty cell.
What does an empty array do?
It is rejected. The input must be a nonempty array of objects.