JSON to CSV Converter

Turn a JSON array of objects into spreadsheet-ready CSV — with proper quoting for commas, quotes, and line breaks.

—

How it works

CSV looks simple — values separated by commas — until a value itself contains a comma, a quote, or a line break. This converter follows the widely-used RFC 4180 rules: any field containing one of those characters is wrapped in double quotes, and a literal quote inside a field is written as two quotes (""). The column headers are the union of every key found across your objects, in first-seen order, so ragged objects (like Carol's missing notes above) simply get an empty cell. Nested objects and arrays are serialized back to compact JSON strings inside their cell rather than being dropped. Paste the result straight into Excel, Google Sheets, or any database import tool.

How to use

  1. Paste a JSON array of objects into the input — the three-person sample is pre-filled so you can see the conversion immediately.
  2. The CSV output updates live. Column headers are the union of every key found across your objects, in first-seen order.
  3. Fields containing commas, quotes, or line breaks are automatically quoted following the widely-used RFC 4180 rules (a literal quote inside a field becomes "").
  4. Click “Copy CSV” and paste the result straight into Excel, Google Sheets, or any database import tool.

Frequently asked questions

What if my objects have different keys?

The headers are the union of every key across all objects, in first-seen order. Objects missing a key — like Carol’s absent “notes” in the sample — simply get an empty cell in that column.

How are nested objects and arrays handled?

They are serialized back to compact JSON strings inside their cell rather than being dropped, so you keep the data — just flattened into one column.

What quoting rules does it follow?

RFC 4180: any field containing a comma, a double quote, or a line break is wrapped in double quotes, and a literal quote inside a field is written as two quotes ("").

Can Excel open the result?

Yes. Save it as a .csv file or paste it directly into a worksheet — Excel, Google Sheets, and database import tools all understand RFC 4180 quoting. Google Sheets even auto-splits pasted CSV into columns when the quoting is clean.