JSON to CSV
How to use
Paste JSON or open a local file and convert it to CSV. Arrays of objects, arrays of arrays, and a single object are supported. String cells and headers that look like spreadsheet formulas are prefixed with a single quote. Nothing is stored or sent anywhere.
About
Output follows RFC 4180: CRLF line breaks, and fields that contain
the delimiter, a quote or a line break are quoted, with quotes
doubled. Column order is the first-seen key order. Missing keys
become empty cells. null is empty;
numbers and booleans are written as text. Nested objects and
arrays are JSON in a cell unless flatten is on (arrays still stay
JSON). A literal key a.b and a nested
a: { b } both flatten to the same column and are
rejected. String cells and headers whose first character that
is not whitespace or a format character is =,
+, -, or @ get a leading
single quote so spreadsheets treat them as text. Leading space,
tab, LF, CR, NBSP, zero-width and other format characters are
skipped for that check (LF is treated the same as CR). JSON numbers are left as
written, so -12.5 the number stays
-12.5, while the string "-12.5"
becomes '-12.5. A leading BOM is stripped on input.
The limit is about 20 MB, with a warning from 5 MB.
This is the inverse of CSV to JSON.