ExcelTool.io

JSON to CSV Converter

Convert a JSON file, an API response or JSON Lines into a clean CSV: nested objects become dot-path columns and the records are found even when they are wrapped. Free, no sign-in, and nothing is uploaded.

Drop your file here or choose a file

Opened on your device - never uploaded · up to 50MB

Supports .json, .jsonl, .ndjson, .txt · or paste a file from your clipboard

No file handy? · download it

How to Convert JSON to CSV

  1. Drop a .json file above or paste the JSON. A file with one object per line (JSON Lines / NDJSON) works too.
  2. Check which records become rows. The largest array of objects in the document is chosen; pick another from Rows from if the document has several.
  3. Choose how nesting is handled and check the preview: one row per record, one column per field.
  4. Download the CSV.

From Nested JSON to Flat Columns

JSON is a tree and CSV is a grid, so every converter has to decide how to flatten. This one follows the convention most databases and BI tools understand:

JSONCSV columns
{"customer": {"name": "Ada", "email": "ada@example.com"}}customer.name, customer.email
{"tags": ["red", "blue"]}tags = ["red","blue"], or red, blue with arrays expanded
{"items": [{"sku": "A1"}, {"sku": "B2"}]}items as JSON text, or items.0.sku, items.1.sku with arrays expanded
A key missing from some recordsThe column still appears; those rows are blank

Columns appear in the order their keys are first seen, so the CSV reads in the same order as the JSON. Numbers stay numbers, true/false stay as written, and JSON null is a blank cell unless you choose to write the word null.

API Responses and Wrapped Records

Real-world JSON is rarely a bare array. An export from Shopify, Stripe, a CRM or your own API usually looks like {"data": [...], "page": 2} or nests the list deeper. Converting the wrapper gives a single useless row, so the converter searches the document for arrays of objects and offers each one with its record count. The largest is selected by default.

JSON to CSV or JSON to Excel?

CSV is the format to choose when the data is headed into another system - a database import, a mail-merge, a Google Sheets upload, a script. If you want a workbook to read and format, the JSON to Excel converter writes an .xlsx with the same flattening rules. To go back from a spreadsheet to JSON, use Excel to JSON.

Frequently Asked Questions

Related Tools