[Go to site: main page, start]

FREE JSON CONVERTER

Convert JSON to CSV.

Turn JSON records into a CSV ready for your spreadsheet. Add multiple files, follow their progress and download each result.

Add as many files as you need. Up to 8 MiB per file. Keep this tab open until your downloads finish.

Conversion starts as soon as you choose files. Files download automatically when ready. Your browser may ask to allow multiple downloads.

Choose an array of objects. Each object becomes a row, with matching keys grouped into columns.

Convert a batch

Choose your files together. Each result gets its own progress, View and Download actions.

Preview without losing your place

Open a short preview beside your downloads while the remaining files continue converting.

Ready to download

CSV keeps your record values together and protects text that could be mistaken for spreadsheet formulas. No account required.

Convert JSON to CSV with a script or SQL

For a repeatable workflow, run a local script or command. Choose an example below for setup, code and output details.

Convert a flat object array with Python

Write output.csv with a header and one row per object, preserving decimal values as text.

View code and setup

Before you start

  • Install Python 3. Save the script beside your UTF-8 input file and run it with python3 script.py. No extra package is required.
Python script
import csv
import json
from decimal import Decimal

with open("input.json", encoding="utf-8") as source:
    rows = json.load(source, parse_float=Decimal)
if not isinstance(rows, list) or not rows or not all(isinstance(row, dict) for row in rows):
    raise ValueError("Expected a non-empty JSON array of objects")
if any(isinstance(value, (dict, list)) for row in rows for value in row.values()):
    raise ValueError("Flatten or explicitly serialize nested values first")
columns = list(dict.fromkeys(key for row in rows for key in row))
with open("output.csv", "w", encoding="utf-8", newline="") as target:
    writer = csv.DictWriter(target, fieldnames=columns)
    writer.writeheader()
    writer.writerows(rows)

Limits and output

  • These examples parse the document into memory. Python integers are exact. Unless a script explicitly uses Decimal, decimals use binary floating point; reserialization can change numeric spelling or precision. Duplicate object keys keep their last value unless explicitly rejected.
  • Missing keys and null both become empty CSV fields; booleans use Python spelling. Nested values are refused. Formula-looking strings are not neutralized: import CSV as text or add a spreadsheet-safety policy.

Documentation: Python JSON documentation

Export selected JSON columns with jq

For an array of records containing name and count, write a two-column CSV with an explicit header.

View code and setup

Before you start

  • Install jq using its official installation guide. These commands use a POSIX shell; put the named input files in the current directory.
Terminal commands
jq -r '["name","count"], (.[] | [.name,.count]) | @csv' input.json > output.csv

Limits and output

  • jq parses JSON rather than preserving source text. Numeric precision depends on the jq build and operations; keep exact source files for precision-sensitive data.
  • Only the named fields are exported. Missing/null values become empty fields. No spreadsheet-formula protection is added.

Documentation: jq manual and installation

Convert object records with ClickHouse local

First turn the JSON array into one object per line with jq, then write a CSV header and rows using local ClickHouse.

View code and setup

Before you start

  • Install jq and the ClickHouse binary from their official guides. Run these POSIX-shell commands beside input.json.
Terminal commands
jq -c '.[]' input.json > records.jsonl
clickhouse local -q "SELECT * FROM file('records.jsonl', JSONEachRow) INTO OUTFILE 'output.csv' FORMAT CSVWithNames"

Limits and output

  • Requires an array of similarly shaped objects. ClickHouse infers types; nested values and absent/null fields follow its settings. This does not add spreadsheet-formula protection or preserve JSON numeric spelling.

Documentation: ClickHouse JSONEachRow format; Install ClickHouse; jq installation and manual

Convert JSON records with DuckDB

Use SQL for a JSON array of similarly shaped records. The result includes a CSV header.

View code and setup

Before you start

  • Install the DuckDB CLI from its official guide. Put input.json in the current directory.
Terminal command
duckdb -c "COPY (SELECT * FROM read_json('input.json', format='array')) TO 'output.csv' (HEADER, DELIMITER ',');"

Limits and output

  • DuckDB infers column types. Mixed values, nested fields and missing keys may differ from the browser converter. CSV has no schema; this command adds no spreadsheet-formula protection.

Documentation: DuckDB JSON loading; Install DuckDB

Frequently asked questions

Are nested values and exact numbers preserved in CSV?

The browser converter keeps exact JSON number tokens. Nested arrays and objects become JSON text inside a CSV cell; they are not flattened into extra columns. Null and absent keys both become blank fields. CSV has no type schema, so a spreadsheet may infer dates or round large numbers when opening it. Review its import settings.

What are the JSON to CSV limits?

Each input is limited to 8 MiB, each output to 64 MiB, and the rectangular CSV to two million cells including its header. This batch converter has different limits from the JSON editor and JSONL viewer. Over-limit or invalid files show an error instead of a partial download.

What if an automatic download is blocked?

Keep this tab open and choose Download beside the completed file. Your browser may require permission for multiple downloads. View is a short preview, while Download contains the complete result. Use Retry for a failed file; files and job state are not a durable backup.

Which JSON can I convert to CSV?

Choose one or more JSON files containing non-empty arrays of objects. Matching keys become columns, with each object on its own row.

How do I download the CSV?

Choose your JSON files to start converting immediately. Use Add more files to add another batch. Each completed file downloads automatically, with View and Download buttons beside it. Text that could be mistaken for a spreadsheet formula is protected.

Does my JSON file get uploaded?

Local editing processes selected and pasted contents in your browser. Optional Assistance sends your goal and only the context you explicitly prepare and include, such as a selected subtree or observed query field metadata, to OpenRouter and the configured model provider. Its preview shows exactly what is included. Ordinary page and asset requests also reach the hosting provider.