tools / json-csv

JSON to CSV / CSV to JSON

Convert a JSON array of objects to CSV, or a CSV file back to JSON. Everything runs in your browser.

JSON
CSV

What JSON shape does this expect?

JSON to CSV expects an array of flat objects — [{"a":1,"b":2}, ...] — since each object becomes a row and each key becomes a column. Column headers are the union of keys across all objects, so missing fields in some rows just produce empty cells.

How quoting is handled

Any CSV field containing a comma, quote, or newline is wrapped in double quotes, with internal quotes doubled ("") per the standard CSV convention — the same escaping Excel and Google Sheets use. Parsing CSV back to JSON follows the same rule in reverse.

Frequently asked questions

Does this handle nested objects or arrays inside JSON?

Nested values are converted to their JSON string representation inside a single CSV cell, since CSV has no concept of nested structure. For deeply nested data, flatten it before converting, or the CSV output will contain a serialized JSON blob per cell.

What happens to data types when converting CSV to JSON?

Everything in CSV is plain text, so every value becomes a JSON string — "30", not 30. If you need actual numbers or booleans, convert types after import.

Is my data uploaded when I use this tool?

No. Conversion happens instantly in your browser — nothing is sent to a server.