JSON to CSV Converter
About this tool
Convert JSON to CSV in your browser. Paste a JSON array of objects, inspect the table, and copy or download the result. Conversion is local to your browser; the tool does not upload the input. Your input and preferences are saved locally.
How to convert JSON to CSV
- Paste a JSON array of objects into the input box.
- Choose comma, semicolon, or tab as the delimiter.
- Optionally flatten nested objects into columns such as
address.city. - Check the table preview, then copy or download your CSV file.
Example
JSON:
[
{"name":"Alice","age":25,"city":"New York"},
{"name":"Bob","age":30,"city":"London"}
]
CSV:
name,age,city
Alice,25,New York
Bob,30,London
How conversion works
- The column headers are collected from all objects, in first-appearance order. Missing values become empty cells.
- When flattening is enabled, nested objects use dotted field names; arrays stay JSON strings in one cell.
- Commas (or the chosen delimiter), double quotes, and line breaks are escaped using CSV quoting rules.
- The optional UTF-8 BOM is added only to downloaded files to help Excel detect non-ASCII characters.
- Formula protection prefixes potentially executable spreadsheet text with an apostrophe. Disable it if you require the exact original strings.
Limits
- The preferred input is an array of objects. A single object is accepted as one row; an array of primitive values produces a
valuecolumn. - Nested arrays are kept as JSON text rather than expanded into multiple rows.
- Like standard JavaScript JSON parsing, integers larger than 253 may lose precision.
- CSV does not preserve JSON types: null values are exported as blank cells, and values are read as text or inferred types by spreadsheet software.
FAQ
Can I convert nested JSON to CSV?
Yes. With flattening enabled, {"address":{"city":"Tokyo"}} produces an address.city column.
Why are some values in double quotes?
CSV requires double quotes around fields containing separators, double quotes or line breaks. Embedded double quotes are doubled.
Can I open the file in Excel?
Yes. Download the CSV with the UTF-8 BOM option enabled for better character encoding compatibility. CSV cannot preserve styling or types.
Why are some cells prefixed with an apostrophe?
Formula protection prevents strings beginning with potentially executable spreadsheet operators from being interpreted as formulas. You can disable this option for exact-value exports.
Is my JSON uploaded?
No. The conversion runs locally in your browser. Input and options are stored in your browser for convenience.