Flattening Nested JSON Into Spreadsheet-Safe RFC 4180 CSV
Real-world JSON API exports rarely arrive as flat key-value arrays. Records routinely contain nested sub-objects (like customer.address.city), variable optional fields that only appear on row 50, or wrapper envelopes like {"data": [...]}. This tool automatically unwraps top-level arrays or single-array envelopes, recursively flattens nested objects with dot notation, and collects the union of all column headers across every row.
All output adheres to RFC 4180: any cell containing a comma, double quote, or line break is enclosed in double quotes with internal quotes escaped as "". Because customer exports frequently contain PII, email addresses, and revenue metrics, converting 100% locally inside your browser eliminates third-party upload risk.
- CSV StandardStrict RFC 4180 escaping: doubles internal quotes ("") and wraps fields containing delimiters, quotes, or newlines
- Nested FlatteningRecursively flattens nested objects into dot-notation columns (customer.name) instead of [object Object]
- Sparse Schema DiscoveryScans every row to build a complete union header set so late-appearing fields are never dropped
How are arrays inside JSON cells serialized into CSV?
Primitive arrays are joined cleanly (or JSON-serialized for arrays of objects) and RFC 4180 quoted so columns never shift out of alignment.
Why do accented characters look garbled when opening CSV in Excel?
Legacy Microsoft Excel defaults to Windows-1252 unless a UTF-8 Byte Order Mark (BOM) is present. Enable the Excel UTF-8 BOM option before downloading.
Can I export tab-separated (TSV) or semicolon-separated CSV?
Yes—switch the delimiter option to tab (\t) for pasting directly into Google Sheets or semicolon (;) for European Excel locales.