JSON to CSV & Excel Converter – Flatten Nested JSON & JSONL avatar

JSON to CSV & Excel Converter – Flatten Nested JSON & JSONL

Pricing

from $6.00 / 1,000 file converteds

Go to Apify Store
JSON to CSV & Excel Converter – Flatten Nested JSON & JSONL

JSON to CSV & Excel Converter – Flatten Nested JSON & JSONL

Convert JSON, JSONL/NDJSON or API responses to CSV or Excel in bulk, and CSV/Excel back to JSON. Nested objects are flattened to dot columns and arrays are joined or exploded to rows. Choose and order the columns and pick a delimiter, with UTF-8 BOM for Excel. Input from URLs, text or datasets.

Pricing

from $6.00 / 1,000 file converteds

Rating

0.0

(0)

Developer

Cemal Atakli

Cemal Atakli

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

9 days ago

Last modified

Categories

Features

Limited permissions

Share

Convert JSON, JSON Lines (JSONL / NDJSON), REST API responses and Apify datasets to CSV or Excel (XLSX) in one click, and convert CSV / Excel back to JSON. Nested objects become clean dot columns (address.city), arrays are joined into one cell, exploded into rows or spread over indexed columns, and every file gets a public download link.

No code, no jq, no spreadsheet formulas: paste a URL or some JSON, press Start, download the CSV.

What it does

  • JSON → CSV / XLSX from any number of URLs, pasted text or an Apify dataset. One output file per input.
  • Smart flattening: {"address": {"geo": {"lat": 1}}} → column address.geo.lat. You choose the separator.
  • Three array modes:
    • Join (default): ["vip", "eu"] → vip; eu.
    • Explode to rows: one row per element of an array of objects, parent fields repeated (one row per order line, per review, per variant). Limit it to one array with explodePath.
    • Indexed columns: tags.0, tags.1, items.0.sku...
  • Column union: records with different fields still produce one table; missing cells stay empty.
  • Choose and order the columns, or keep first-seen / A-Z order.
  • Finds the records automatically in API responses (items, data, results, records, rows...) or use a JMESPath recordsPath such as data.orders.
  • CSV options: comma, semicolon (European Excel), tab or pipe delimiter; UTF-8 BOM so Excel shows accents and non-Latin text correctly.
  • Real Excel types: numbers stay numbers, ISO dates become Excel dates, bold frozen header with autofilter.
  • Reverse direction: CSV / XLSX → JSON array; address.city columns become nested objects again, numbers and true / false become JSON values, codes such as 01234 stay text.
  • Safe and honest: only public http(s) URLs (private network addresses are refused), size cap, retries. Invalid JSON, empty files and errors are reported per input and never charged.

Which gazidev converter do I need?

You want...Use
JSON / JSONL / API / dataset → CSV or XLSX file, nested JSON flattened, arrays exploded to rowsJSON to CSV & Excel Converter (this Actor)
Excel / ODS / CSV workbooks → JSON with all sheets, header detection, merged cellsExcel to JSON Converter
Reshape JSON with jq / JMESPath expressions (filter, aggregate, rename)JSON Transformer
Filter rules, merge and dedupe datasets, "only new items since last run"Dataset Filter & Transform

Use cases

  • An API or webhook returns JSON and your manager wants a spreadsheet.
  • Turn a scraper's nested output (Apify dataset) into a flat CSV for Google Sheets, a CRM import or Power BI.
  • Convert JSONL / NDJSON exports (logs, BigQuery, OpenAI batch files, Elasticsearch dumps) to CSV.
  • Shopify / WooCommerce style orders → one row per line item with Explode to rows.
  • A no-code step in n8n, Make or Zapier: "JSON in, CSV link out".
  • CSV from a partner → JSON for an API or a test fixture.

Input example

{
"jsonUrls": ["https://jsonplaceholder.typicode.com/users"],
"outputFormat": "both",
"arrays": "join",
"delimiter": ",",
"excelBom": true
}

Nested orders, one row per order line, only some columns:

{
"jsonText": "{\"data\":{\"orders\":[{\"id\":1,\"customer\":{\"name\":\"Ana\"},\"lines\":[{\"sku\":\"A\",\"qty\":2},{\"sku\":\"B\",\"qty\":1}]}]}}",
"recordsPath": "data.orders",
"arrays": "explode",
"columns": ["id", "customer.name", "lines.sku", "lines.qty"]
}

CSV to JSON:

{ "direction": "table-to-json", "jsonUrls": ["https://example.com/export.csv"] }

In an Apify integration use "datasetId": "{{resource.defaultDatasetId}}" to convert the output of the previous run.

Output

The dataset has one row per input with the download links (the OUTPUT record has the same plus totals and charges):

{
"input": "https://jsonplaceholder.typicode.com/users",
"status": "ok",
"rows": 10,
"columns": 15,
"columnNames": ["id", "name", "username", "email", "address.street", "address.suite", "address.city", "address.zipcode", "address.geo.lat", "address.geo.lng", "phone", "website", "company.name", "company.catchPhrase", "company.bs"],
"recordsFrom": "top-level array",
"csvUrl": "https://api.apify.com/v2/key-value-stores/<store>/records/users.csv",
"warnings": []
}

The CSV:

id,name,username,email,address.street,address.suite,address.city,address.zipcode,address.geo.lat,address.geo.lng,...
1,Leanne Graham,Bret,Sincere@april.biz,Kulas Light,Apt. 556,Gwenborough,92998-3874,-37.3159,81.1496,...

Turn on "Also put the table rows in the dataset" (pushRows) to get the converted rows in the dataset as well, for the next step of a pipeline (charged per row, see below).

Pricing

Pay per event, no subscription. You pay per converted input, not per row:

EventPriceWhen
File converted$0.006Once per input converted (CSV and XLSX both included), covers up to 10,000 rows
Extra 10,000 rows$0.003Each further started block of 10,000 rows of the same input
Row pushed to dataset$0.0002Only when pushRows is on
Actor start$0.00005Once per run

A 1,000-row JSON file costs $0.006; 25,000 rows cost $0.012. Invalid JSON, empty inputs and failed downloads are free.

ActorPrice for one 1,000-row file
JSON to CSV & Excel Converter (this)$0.006
humble-echidna/dataset-transform$0.001 per row = $1.00
eliai/excel-to-json$0.03 per file

(Competitor prices from the Apify Store on 13 Nov 2026; they may change.)

Set a maximum cost per run and the Actor stops cleanly: the current file is cut to the rows that were paid for (with a warning) and remaining inputs are listed as not processed in OUTPUT.

Use with AI agents / Apify MCP

The input is small and predictable, so agents can call it through the Apify MCP server or the API: pass jsonText (or jsonUrls) and read csvUrl / xlsxUrl from the dataset. Errors come back as rows with status: "error" and a readable error message, never as a crashed run.

FAQ

How big can a file be? Up to maxFileSizeMb (default 100 MB). The file is converted in memory: use 1–2 GB of run memory for files above ~100 MB. XLSX is limited to 16,384 columns and 1,048,575 rows per sheet (more rows go to extra sheets).

My records are inside response.payload.items. Set recordsPath to response.payload.items.

Explode created too many rows. A record with several arrays of objects explodes into their combination (capped at 1,000 rows per record). Set explodePath to the one array you want, e.g. lines.

Excel shows broken characters. Keep "UTF-8 BOM" on. For a European Excel choose the semicolon delimiter.

Can it call a private API? Add headers in httpHeaders (e.g. Authorization). They are stored in the run input, so use a short-lived token. URLs that resolve to private or internal network addresses are refused.

Excel input with several sheets? The reverse direction reads the first visible sheet. For all sheets, header detection and merged cells use Excel to JSON Converter.

Which datasets can it read? Your own datasets, datasets shared with you and public ones.