JSON to CSV Converter
About the JSON to CSV Converter
This JSON to CSV converter turns an array of JSON objects into a spreadsheet-ready CSV file, flattening nested objects into dotted columns. Pick a comma, semicolon, tab or pipe delimiter and download a file that opens correctly in Excel, Google Sheets or a database import.
How JSON maps to CSV
Each object in the array becomes one row. Every key that appears in any object becomes a column, in the order it is first seen, so records with different keys still line up. A missing key simply leaves that cell empty.
A single object (not wrapped in an array) is converted to one row. An array of plain values such as [1, 2, 3] becomes a single column named value.
Flattening nested JSON
CSV is flat, so nested objects need a column naming scheme. With Flatten nested objects on, {"address": {"city": "London", "zip": "N1"}} produces two columns: address.city and address.zip.
Arrays are not spread across columns. They are written as JSON text inside one cell, for example ["math","code"], so nothing is lost and you can parse them back later. Turn flattening off to write whole nested objects as JSON text instead.
CSV quoting rules (RFC 4180)
A field is wrapped in double quotes when it contains the delimiter, a double quote or a line break. Quotes inside a field are doubled, so Said "hi" is written as "Said ""hi""". Rows end with CRLF, the line ending RFC 4180 specifies.
Excel in many European locales expects semicolons rather than commas, because the comma is the decimal separator there. If your file opens as a single column, switch the delimiter to Semicolon.
How to Use the JSON to CSV Converter
- Paste a JSON array into the JSON box, or click Sample to see an example with nested data.
- Choose a Delimiter: Comma, Semicolon, Tab or Pipe.
- Toggle Header row to include or omit the column names, and Flatten nested objects to control how nested data is written.
- Check the CSV panel: it shows the row and column count and updates as you edit.
- Click Copy, or Download to save data.csv with a UTF-8 byte-order mark for Excel.
Frequently Asked Questions
- Is my data sent to a server?
- No. The conversion runs in your browser, and the CSV file is generated locally. Nothing you paste is uploaded.
- What JSON structure does the converter expect?
- An array of objects works best, for example [{"id":1,"name":"Ada"}]. A single object or an array of plain values is also accepted. A bare string or number is rejected.
- How are nested arrays handled?
- They are kept as JSON text inside one cell, such as ["a","b"]. This keeps every value intact instead of guessing how many columns to create.
- Why does Excel show everything in one column?
- Your Excel locale probably uses a semicolon as the list separator. Choose Semicolon as the delimiter and download again.
- Can I convert the CSV back to JSON?
- Yes. Use the CSV to JSON converter with "Nest dotted keys" on, and columns like address.city become nested objects again.
- Is there a row limit?
- There is no fixed limit. Tens of thousands of rows convert in a moment; the practical ceiling is your browser's memory.