Web Toolbox

JSON ↔ CSV converter

Runs in your browser – nothing is uploaded.

Turn a JSON array of objects into CSV for a spreadsheet, or turn CSV with a header row into a JSON array. Every key that appears in any object becomes a column.

Nested objects become dotted column names such as address.city, or you can keep them as JSON text. Arrays are written as JSON text. Values containing commas, quotes or line breaks are quoted the standard (RFC 4180) way. When reading CSV, both CRLF and LF line endings work.

Example

Direction: JSON -> CSV, Delimiter: Comma, Nested objects: Dotted keys

Input

[{"id":1,"name":"Ada","address":{"city":"London"}},{"id":2,"name":"Grace, B","address":{"city":"New York"}}]

Output

id,name,address.city
1,Ada,London
2,"Grace, B",New York

Frequently asked questions

Are CSV values turned into numbers?

Only if you choose “Detect numbers, booleans and null”. By default every value stays as text, which keeps leading zeros (such as 007) and long IDs exactly as they are.

Can I use semicolons or tabs?

Yes. Choose Comma, Semicolon or Tab as the delimiter. It is used in both directions.

How do I get nested JSON back from dotted headers?

In CSV -> JSON mode, choose “Expand to nested objects” to turn address.city back into {"address": {"city": …}}.