Home/Tools/Data Tools/JSON to CSV
JSON to CSV Converter
Data ToolsProcessed in your browser. A copy of each run is saved to your past runs so you can reopen it. Privacy
What the JSON to CSV does
The JSON to CSV Converter turns an array of JSON objects, a single object or JSON Lines into a CSV file that opens cleanly in Excel, Google Sheets or Numbers. Nested objects become dot-path columns (address.city), arrays are joined or split into columns, and you choose the delimiter, quoting and header order. A preview table shows the result before you download. It is for analysts and anyone with an API export; it does not convert in the other direction, the CSV to JSON converter does.
How to use it
- 1Paste JSON into the left panel or upload a .json or .jsonl file.
- 2Set the delimiter (comma, semicolon or tab), how arrays and nested objects are handled, and whether to add a BOM for Excel.
- 3Press Convert to CSV (or Cmd/Ctrl+Enter).
- 4Check the preview table: columns are the union of every key seen, in order of first appearance or alphabetically.
- 5Copy the CSV or download data.csv and open it in your spreadsheet.
Options explained
- Delimiter
- Comma is the CSV standard and what US Excel and Google Sheets expect. Semicolon is needed for Excel in locales that use a decimal comma (most of Europe). Tab produces a TSV, the safest choice when values contain commas.
- Quotes: only when needed, or every field
- Minimal quoting (the default) wraps a field only when it contains the delimiter, a quote, a line break or leading/trailing spaces. 'Every field' quotes everything, which some importers require.
- Columns: order of appearance or alphabetical
- Order of appearance keeps the first object's key order, usually what the API intended. Alphabetical makes two exports comparable when the key order varies.
- Flatten nested objects
- On, {"address": {"city": "Austin"}} becomes a column named address.city. Off, the nested object is written as a JSON string in one cell.
- Arrays: join, one column per item, or JSON
- Join writes ["a","b"] as a; b in one cell. One column per item creates tags.0, tags.1… for fixed-length lists. JSON keeps the array as a string for re-import.
- BOM for Excel
- Prepends a UTF-8 byte-order mark so Excel on Windows recognizes accented characters and emoji instead of showing mojibake. Leave it off for data pipelines, which may treat the BOM as part of the first header.
Common problems and limits
Input up to 50 MB is converted in your browser; very large files take a few seconds and the preview shows the first 20 rows. Only the first 512 KB of input and output are kept in your past runs.
When objects do not share the same keys, the columns are the union of all keys and missing values are left empty. A note tells you when this happened so you can check the result.
An object whose only array property holds objects (the common {"data": [...]} API wrapper) is converted using that array. Other object shapes become a single row.
Numbers are written as JSON wrote them; a long ID such as 12345678901234567890 is kept as text in the CSV, but Excel may still round it on open. Import as text in that case.
Dates stay strings. Booleans are written as true and false.
Who uses it
- Analysts and operations: Drop an API export into a spreadsheet for a pivot table without writing a script.
- Ecommerce teams: Turn a Shopify, WooCommerce or marketplace order export (nested customer and line-item objects) into a flat CSV for accounting or a fulfillment partner.
- Recruiters and HR: Convert an applicant-tracking API export of candidates into a sheet the hiring team can filter.
- Developers: Hand a JSON fixture or a log of events (JSON Lines) to a colleague who works in Excel.
- Marketers: Flatten analytics or CRM JSON into columns for a report, choosing semicolons for European Excel.
Frequently asked
How do I convert JSON to CSV?
Paste the JSON above, choose your delimiter and how to treat nested data, and press Convert to CSV. Check the preview, then download data.csv. The conversion runs in your browser.
Can I turn a JSON file into a CSV?
Yes. Use Upload .json to read the file, or paste its contents. Arrays of objects become rows; a single object becomes one row; JSON Lines (one object per line) is detected automatically.
Can I convert JSON to Excel?
Download the CSV with 'BOM for Excel' on and open it in Excel; it loads as a sheet with one column per key. Save as .xlsx from there. Excel 365 can also import JSON directly via Data → Get Data, but the CSV path needs no setup.
Can I convert JSON to Excel online for free?
Yes. This converter is free and needs no account. It produces a CSV, which Excel, Google Sheets and Numbers open directly; a true .xlsx with formatting needs a spreadsheet application.
How does it handle nested JSON?
Nested objects are flattened into dot-path columns such as customer.address.city. Arrays are joined with semicolons, split into indexed columns or kept as JSON, depending on the Arrays setting.
What is better, CSV or JSON?
They do different jobs. CSV is a flat table that spreadsheets open natively and is smaller for tabular data. JSON represents nested structures and types and is what APIs speak. Convert to CSV when a person will work with the data in a spreadsheet.
Why does Excel show strange characters?
Excel on Windows assumes a legacy encoding for CSV files without a byte-order mark. Turn on 'BOM for Excel' and download again; accented characters and emoji then display correctly.
What software can convert JSON data to CSV files?
This page in any browser; on the command line, jq -r '.[] | [.a, .b] | @csv' or Python's pandas (pd.json_normalize(data).to_csv()). Spreadsheet applications with Power Query can import JSON directly.
Automation: an MCP tool json_to_csv(json, options) → csv and an n8n node are planned for this tool.