Export JSON Arrays as Spreadsheet-Ready CSV Files
JSON is the native format of APIs, NoSQL databases, and modern web applications, but spreadsheets, BI tools, and legacy systems still expect flat CSV. This converter takes a JSON array of objects and produces RFC 4180-compliant CSV output with proper quoting, configurable delimiters, and optional flattening of nested structures. Paste the JSON, choose your settings, and copy or download the result.
Automatic Column Discovery
Not every object in an API response has the same keys — optional fields, schema evolution, and sparse data mean some rows may lack certain properties. The converter scans every object in the array and collects all unique keys to form the full set of column headers. Missing keys produce empty cells rather than missing columns, so the CSV has a consistent structure that spreadsheets can import without errors.
Flattening Nested Objects
CSV is inherently flat — it has no notion of nested structures. When flattening is enabled, nested objects are decomposed into dot-notation columns: a key like address.city holds the value of the city field inside an address object. Arrays that cannot be meaningfully flattened are serialized as JSON strings so no data is lost. Disable flattening if you want nested values to appear as raw JSON in a single cell.
Quoting and Special Characters
The"when needed" quoting mode wraps a field in double quotes only if it contains the delimiter, a newline, or a double quote — keeping the output clean for simple data. The"always" mode quotes every field, which some strict parsers and database import tools require. Internal double quotes are escaped by doubling them, following the RFC 4180 standard that Excel, Google Sheets, and most CSV libraries expect.
Working with API Responses
A typical workflow is to copy the JSON body from a REST endpoint's response, paste it here, and download the CSV for analysis in a spreadsheet. This is faster than writing a script for a one-off export and avoids installing a CLI tool. For paginated APIs, merge the arrays from multiple pages into one before pasting; the converter handles arrays of any length that fit in browser memory.
Privacy
All processing runs client-side in JavaScript. No data is uploaded or stored, so it is safe to convert API responses that contain user records, financial data, or internal system information.