Data ToolsA little help for every day

Search by name or task, such as JSON or percentage.

Data Tools

JSON to CSV Converter

Convert a JSON array, object or JSON Lines file to CSV in your browser. Flatten nested fields, pick a record path and delimiter, preview the table, download.

View all tools
ResultUpdates as you type

2 records × 5 columns (nested objects flattened), comma-separated, 130 characters.

id,user.name,user.city,tags,note
1,Alice,London,"[""new"",""trial""]","Tea, coffee"
2,Bob,Paris,"[""returning""]","Said ""hello"""

Download data.csv

How to use JSON to CSV Converter

Paste JSON or upload a .json file of up to 5 MB. If the records sit inside something like data.items, enter that record path, then choose the delimiter, array handling, line endings and formula protection. Copy the CSV or download it with a UTF-8 BOM.

  1. Add your JSONPaste an array of objects, a single object or JSON Lines, or switch the input to a file upload.
  2. Choose the layoutSet a record path if needed, pick a comma, semicolon, tab or pipe, and decide how arrays become cells.
  3. Preview and downloadSwitch to the table preview to check the columns, then copy the CSV or download data.csv.

How nested objects and arrays become columns

With Flatten nested objects ticked, {"user":{"name":"Alice"}} becomes a user.name column; untick it to keep nested objects as JSON text in one cell. Arrays can stay as JSON text such as ["new","trial"], be joined into new|trial, or expand into numbered columns such as tags[0] and tags[1]. The sample's 2 records give 5 columns, or 6 with numbered columns. Every field found in any record gets a column, and missing values are left empty so nothing shifts.

Record paths and spreadsheet-safe CSV

APIs often wrap the rows in data.items or results[0].rows. When the top level is an object, the tool finds the largest array of records inside it and tells you which path to enter. Cells containing the delimiter, quotes, line breaks or edge spaces are quoted and inner quotes doubled. Formula protection, on by default, puts an apostrophe before text starting with =, +, - or @ so Excel does not run it. Output over 400,000 characters downloads through a temporary in-browser file.

Accuracy and data handling

Keep the original data and spot-check fields, types and delimiters before using an important conversion. The calculation runs in your current browser; the tool code does not send the input to a processing API.

Often Used Together

Next step

FAQ

Can I convert a single JSON object?

Yes. A single object becomes one row. If it wraps an array of records, the tool tells you the path to that array; enter it as the record path to get one row per record.

Why do accented letters look wrong when Excel opens the file?

Keep Add a UTF-8 BOM to the download ticked so Excel reads the file as UTF-8. On Windows you can also set the line endings to CRLF.

Does it accept JSON Lines?

Yes. If the input is not one JSON value but every line is, it is read as JSON Lines and each line becomes a row, which suits log exports and NDJSON files.

Is my file uploaded?

No. Files of up to 5 MB are read and converted in your browser, and the CSV download is created there too.

More Data Tools

Related tools