JSON to CSV Converter

Convert a JSON array of objects to CSV, or paste CSV to get JSON back — switch direction with the toggle above the input.

How it works

JSON → CSV expects a JSON array of flat objects (or an array of arrays). Column order follows the first-seen key across all rows, so a field that only appears on a later object still gets its own column instead of being dropped. CSV → JSON reads the first row as a header and infers numbers, booleans, and null from each cell — everything else stays a string.

Notes

  • Nested objects/arrays in a JSON field are serialized as a JSON string inside the CSV cell.
  • Cells containing a comma, quote, or newline are automatically wrapped in quotes per RFC 4180.
  • CSV has no type system — number/boolean inference on the way back to JSON is a convenience, not a guarantee.