JSON to CSV Converter
Turn an array of JSON objects into CSV. Nested objects can be flattened into dotted column names, and arrays are kept as compact JSON strings.
JSON input
CSV output
How values are handled
- Objects are flattened with dots:
{"meta":{"active":true}}becomesmeta.active. - Arrays and nested objects that are not flattened are serialized as JSON strings inside the cell.
nullbecomes an empty cell; booleans and numbers use their JSON text.- Fields containing commas, quotes or newlines are quoted and embedded quotes are doubled, as required by RFC 4180.
- With formula protection enabled, string cells beginning with
=,+,-,@, tab or carriage return get a leading apostrophe. Numbers, booleans and numeric strings such as-5are left unchanged, so negative values stay numeric. - Numbers are parsed with
JSON.parse, which uses IEEE-754 doubles. Integers above2^53-1can lose precision, and1.0is indistinguishable from1.