JSON GUIDE · 4 MIN READ

Convert JSON to CSV without surprises

Plan columns, nested fields, quoting, missing cells, and spreadsheet formula safety.

Decide what one row means

CSV works best when each JSON array element represents one record. Choose columns from the record fields, then decide whether nested objects should become text or flattened columns. An array within a record needs a policy too: joining its values and expanding it into several rows produce different datasets.

Commas, quotes, and line breaks inside cells need proper CSV quoting. Use the converter rather than building lines with a simple join. Keep Unicode and verify the delimiter expected by the receiving application.

[{"name":"Ada","note":"hello, world","active":true},{"name":"Lin","note":null}]

CSV is a view, not a lossless backup

An empty cell cannot reliably tell you whether the JSON field was missing, null, or an empty string. A spreadsheet may reinterpret a long identifier, date-like text, or a leading-zero code. Preserve the JSON source and inspect imported types before relying on a spreadsheet's display.

Spreadsheet applications can treat cells beginning with formula characters as expressions. Use spreadsheet safety protection when exporting untrusted data and understand that it can prefix the cell text. A later CSV-to-JSON conversion will not automatically restore every original JSON type or nested shape.

Put it into practice

Further reading

← All JSON guides