JSON to CSV Converter
Turn a JSON array of objects into a clean CSV file, or paste CSV and get structured JSON back. Handles commas, quotes and line breaks inside fields, and collects columns from every row so nothing is dropped.
How it works
JSON → CSV: the tool gathers the union of all object keys as the header row, then writes each object as a row, quoting fields that contain commas, quotes or newlines per RFC 4180. CSV → JSON: a proper CSV parser (not a naive split) reads quoted fields and escaped quotes, then maps each row onto the header keys.
Frequently asked questions
What JSON shape do I need?
An array at the top level: [{"a": 1}, {"a": 2}]. Non-object items are wrapped under a 'value' column automatically.
What if objects have different keys?
All keys across every object become columns; missing values are written as empty cells.
Does it handle commas inside values?
Yes — fields containing commas, double quotes or line breaks are quoted, and embedded quotes are doubled, following the CSV standard.