elefcode

JSON tool

JSON to CSV — free online tool

Turn a JSON array of objects into a clean CSV file — perfect for Excel, Google Sheets, BigQuery, or any database import.

What does this do?

CSV is the universal data-exchange format for spreadsheets and databases. This converter takes an array of objects, unions the keys across every row to build the header line, flattens nested objects with dot-paths (e.g. `address.city`), and quotes cells per RFC 4180 when they contain commas, quotes, or line breaks.

When to use it

  • Export an API response for Excel / Google Sheets
  • Prepare data for BigQuery, Snowflake, or Postgres `COPY`
  • Make a quick CSV from log lines or analytics events
  • Extract a column from a JSON array for further processing

Tip

Input must be an array of objects — common envelopes like `{ "data": [...] }`, `{ "rows": [...] }`, `{ "items": [...] }`, `{ "results": [...] }`, and `{ "records": [...] }` are auto-unwrapped. Nested objects are flattened with dot-paths.

Example: Users → spreadsheet

Input — JSON

{
  "rows": [
    { "id": 1, "name": "Alice", "email": "[email protected]", "address": { "city": "Cairo" } },
    { "id": 2, "name": "Bob",   "email": "[email protected]",   "address": { "city": "Berlin" } },
    { "id": 3, "name": "Carol", "email": "[email protected]", "address": { "city": "Tokyo" } }
  ]
}

Output

id,name,email,address.city
1,Alice,[email protected],Cairo
2,Bob,[email protected],Berlin
3,Carol,[email protected],Tokyo

More JSON tools