⚙️
Settings
Delimiter
Include header row
First row = column names
{ }
JSON Input
Paste a JSON array on the left to generate CSV

Getting JSON Data Into Spreadsheets Without Writing Code

REST APIs speak JSON. Business stakeholders speak Excel. The translation between these two worlds is a recurring pain point for developers and analysts. You have an API response with dozens of objects, each with nested properties — and someone needs it as a spreadsheet by end of day. This converter bridges that gap in three steps: paste JSON, configure the delimiter if needed, download the CSV.

The trickier problem is nested objects. JSON naturally nests objects inside objects — an address inside a user, a price inside a product, metadata inside an event. Spreadsheets are flat. This converter handles the translation automatically using dot notation, turning {"user":{"name":"Alice","city":"Mumbai"}} into two columns: user.name and user.city. The resulting CSV is immediately readable in Excel, Google Sheets, or LibreOffice.

Dot Notation Flattening — How Nested JSON Becomes Columns

When an object property contains another object, the converter concatenates the property names with a dot to produce the column header. A response like {"id":1,"billing":{"street":"MG Road","city":"Bangalore","pin":"560001"}} produces four columns: id, billing.street, billing.city, billing.pin. The depth of nesting is handled recursively — a.b.c.d column names are valid if your JSON nests three levels deep.

Arrays inside objects are a different case. A tags: ["admin","editor"] property cannot be split across a fixed number of columns because the array length varies between rows. The converter serialises these as a JSON string in a single cell. If you need tags as separate columns, reformat the JSON first using the JSON Formatter to restructure the data.

RFC 4180 Compliance — Why It Matters for Excel

CSV seems like a simple format but has enough variation to cause silent parsing errors. A field containing a comma must be quoted. A field containing a double quote must be quoted with the internal quotes doubled. A field containing a newline must be quoted and the newline preserved. Excel's CSV parser strictly expects RFC 4180 compliance; a non-compliant CSV shifts columns in unpredictable ways.

This converter produces fully RFC 4180-compliant output. Fields are quoted whenever they contain the delimiter, double quotes, or newlines. Embedded double quotes are escaped. The result opens correctly in Excel regardless of the field content, including address fields with commas, descriptions with quotes, and multi-line text.

When to Use JSON-to-CSV vs Keeping Data in JSON

  • Reporting to non-technical stakeholders: Finance, marketing, and operations teams work in Excel or Google Sheets. Converting JSON API data to CSV lets them work with it without any technical dependency.
  • Loading data into relational databases: MySQL, PostgreSQL, and SQL Server all accept CSV imports via LOAD DATA INFILE, COPY, or bulk import tools. Convert API response arrays to CSV for direct import.
  • Data archiving: CSV is a durable, human-readable archive format with no dependency on any particular software version or schema. JSON data worth long-term archiving is often better stored as CSV.
  • Before importing into another API: Some data platforms and ERPs accept CSV imports but not JSON. Convert here, then import to the target system.
  • For the reverse operation: When you need to convert the CSV back, the CSV to JSON converter handles the return direction with equivalent delimiter and quoting support.

Verified by ToollyX Team · Last updated June 2026

Frequently Asked Questions

Disclaimer: JSON parsing and CSV generation run entirely in your browser. No data is transmitted to any server.