This free online JSON to CSV converter turns API records or application exports into a table for a spreadsheet or importer. Paste JSON or choose a UTF-8 .json file, preview the records, select columns and download CSV. Conversion runs locally in your browser with no account required.
Use an array of objects for multiple CSV rows, or one nonempty object for a single row. You can flatten nested objects into dotted columns; arrays inside records stay as JSON text in one cell. Choose a representation that matches the receiving system before exporting.
How to convert JSON to CSV online
- Paste your JSON into JSON input, or open Upload JSON and use Choose JSON to select one file.
- Select Validate JSON to detect records and the complete set of columns. Correct any reported errors before exporting.
- Review Flatten nested objects and Include header row. Use the column controls to select and order the fields you need.
- Choose comma, semicolon, tab or pipe to match the receiving application, then select Convert to CSV.
- Check the preview and generated CSV. Select Download CSV to save the result, or Copy to paste it elsewhere.
The file picker accepts one file up to 20 MiB (20,971,520 bytes). Up to 500 detected columns are supported. The preview shows the first 20 records; conversion uses all parsed records. Large inputs can use substantial browser memory. JSONL streams and binary spreadsheet files are not supported by this converter.
Convert JSON to CSV with arrays in one cell
Select Load nested example, keep nested-object flattening and CSV headers enabled, then convert these fictional records:
[
{"id":"A1","profile":{"city":"Dubai"},"tags":["new","trial"]},
{"id":"A2","profile":{"city":"Abu Dhabi"},"note":"review"}
]
The CSV contains two data rows:
id,profile.city,tags,note
A1,Dubai,"[""new"",""trial""]",
A2,Abu Dhabi,,review
profile.city is a dotted column name. The tags array is valid JSON text inside one CSV cell; doubled quotation marks are CSV escaping. It does not become one row per tag. The note column is included even though it appears only in the second record, and absent values produce blank cells.
Disable flattening to keep profile as JSON text in one cell instead. Choose the representation your receiving system expects before downloading.
Select records and columns for the receiving system
Start with an array in which every item is an object, or one nonempty object for a single row. Empty arrays, arrays of primitives and mixed object/primitive arrays are rejected. If an API response wraps records inside a field such as items, select that array first with JSONPath Tester; converting the wrapper itself would produce a single row with the array in a cell.
Choose Validate JSON to detect records and columns. Columns are collected across all records, so a field that first appears in a later record can still become a column. Use the column selector to include, exclude and reorder fields; at least one column must remain selected.
Check the preview against the required header names and order. Keep Include header row enabled for a spreadsheet, or disable it when an importer expects only data rows. Choose comma, semicolon, tab or pipe to match that importer, then select Convert to CSV.
Decide whether to flatten nested objects
Flattening turns nested object paths into dotted column names. It does not expand arrays into rows or rebuild a relational table. If each tag or order item needs its own row, transform the source data according to that relationship before converting.
Review source keys before flattening. A literal key named profile.city can collide with the flattened path of {"profile":{"city":"Dubai"}}; the implementation does not report that collision, and one value can overwrite the other. Rename conflicting keys in the source or disable flattening. Empty nested objects also contribute no columns when flattened.
Deep nesting can be retained as JSON text with a warning rather than flattened further. Check warnings and the actual detected columns instead of assuming that every nested field becomes a separate cell.
Check types, blank cells and numeric IDs
CSV stores text. Numbers and booleans are serialized as text, while missing fields, explicit null and empty strings all produce empty cells. The export cannot preserve the distinction between those three cases. Keep JSON when your next workflow needs that distinction.
This converter parses JSON with JavaScript's native JSON.parse. Bare integers outside the safe range can round before CSV generation, and repeated keys in one object retain only the last value. Inspect questionable input with JSON Formatter before conversion. Its text-preserving output does not change how this converter subsequently parses numbers. Obtain large IDs as strings at their source when the data contract allows it; formatting an already rounded value cannot recover its digits.
A spreadsheet may interpret CSV cell text as numbers or dates on import. Use its import settings to treat identifier columns as text, then check leading zeros and long IDs after opening the file.
Open the CSV in Excel or Google Sheets
Download the CSV using the separator your spreadsheet will expect. If everything appears in one column, import the file again and select the matching separator; changing the file extension does not split the fields.
In Excel on Windows, use Data > From Text/CSV, select the saved file and check the delimiter in the preview. Review the import settings for identifier columns before loading the table. Opening a CSV directly can apply automatic number or date interpretation, so check long IDs and leading zeros after import. Microsoft documents the available text and CSV import options.
In Google Sheets on a computer, choose File > Import, select the downloaded CSV and choose where to place its rows. Select a matching Separator character when automatic detection does not split the columns correctly, then finish the import. Google lists the supported formats and separator choices in its spreadsheet import instructions.
ToolMint exports a CSV text file, not an .xlsx workbook. Importing it into a spreadsheet does not restore the nested JSON structure or distinguish missing values from explicit nulls and empty strings.
Verify the export before using it
Compare the record count and selected columns with the source. The preview shows only a limited set of rows; check the downloaded file as well, including records with arrays, missing fields and quoted text. Use JSON Schema Validator with an appropriate schema when source field requirements need checking, or Text Diff Checker to compare two CSV exports made with the same settings.
The CSV to JSON Converter can create JSON objects from the exported table, but it does not automatically reconstruct nested objects from dotted headers or turn array text back into arrays. Treat the conversion as a table export, and retain the original JSON for workflows that need its structure and types. Processing details and supported limits are listed in the page's privacy and limitations sections.