Tools

Home
JSON FormatterSQL FormatterJS ValidatorMinify CSS
Merge PDFCompress PDFImage to PDF
JPG to PNGPNG to WebPCrop Image

JSON to CSV Converter

Paste or drop a JSON array of objects to instantly convert to CSV with custom delimiters and table preview

Your files never leave your browser
JSON Input0 chars, 0 lines
CSV Output0 chars, 0 lines
Ready·
Table Preview

Drop a JSON array of objects here and get a clean CSV file back — with your choice of delimiter, optional headers, and a table preview to double-check the output. Nested fields get stringified into single cells so your column structure stays intact. And everything runs in your browser. Nothing gets uploaded.

How It Works

Paste JSON Array
➔
Extract Keys & Flatten
➔
Output CSV Rows

The tool parses your JSON, scans every object in the array to collect all unique keys (even if some objects are missing fields), then writes one header row followed by data rows. Nested objects or arrays get converted to JSON strings so each cell stays a single value. You pick the delimiter — commas, tabs, semicolons, or pipes.

Examples

Simple user list from an API response

You fetched a list of users and need to hand it to someone who only uses Excel.

INPUT
[ {"name": "Alice", "age": 32, "city": "Portland"}, {"name": "Bob", "age": 27, "city": "Denver"} ]
OUTPUT
name,age,city Alice,32,Portland Bob,27,Denver

E-commerce product data with nested fields

Product catalog export where some fields contain arrays. The converter stringifies nested values so your CSV columns don't break.

INPUT
[ {"sku": "W-100", "name": "Widget", "price": 9.99, "tags": ["sale", "new"]}, {"sku": "G-200", "name": "Gadget", "price": 24.50, "tags": ["popular"]} ]
OUTPUT
sku,name,price,tags W-100,Widget,9.99,"[""sale"",""new""]" G-200,Gadget,24.50,"[""popular""]"

Inconsistent objects with missing keys

Real-world API data is messy. Not every object has every field — the tool fills gaps with empty cells.

INPUT
[ {"id": 1, "email": "[email protected]"}, {"id": 2, "phone": "555-0100"}, {"id": 3, "email": "[email protected]", "phone": "555-0300"} ]
OUTPUT
id,email,phone 1,[email protected], 2,,555-0100 3,[email protected],555-0300

Who Uses This

💻 Developers

Converting API responses into CSV for database imports or quick data audits.

📊 Data Analysts

Pulling JSON exports from dashboards and loading them into Excel or Google Sheets for pivot tables.

📜 Project Managers

Turning Jira or Trello JSON exports into spreadsheets for stakeholder reports.

🎓 Students

Reformatting research datasets from JSON into CSV for R, SPSS, or class assignments.

Common Mistakes

Pasting a single object instead of an array

If you paste {"name":"Alice"} instead of [{"name":"Alice"}], the parser won't know it's a row. Wrap it in square brackets first.

Expecting nested objects to auto-flatten into separate columns

A field like {"address": {"city": "NYC", "zip": "10001"}} becomes one column with the stringified JSON. If you need address.city and address.zip as separate columns, flatten your JSON before converting.

Forgetting that commas inside values will break CSV parsing

Values like "Portland, OR" contain commas. The tool wraps these in quotes automatically. But if you manually edit the CSV output and remove those quotes, spreadsheet apps will split the value across two columns. Leave the quoting alone.

Technical Details

Frequently Asked Questions

How do I convert a JSON file to CSV?

Paste your JSON array into the input box or drag-and-drop a .json file. The tool reads every object in the array, pulls out all the keys for headers, and writes each object as a CSV row. Hit the download button and you have got a .csv file ready for Excel or Google Sheets.

Can JSON with nested objects be converted to CSV?

Yes, but with a caveat. Nested objects and arrays get stringified — so {"address":{"city":"NYC"}} becomes the literal text {"city":"NYC"} in one CSV cell. If you need those nested fields as their own columns, you will have to flatten the JSON structure first before running the conversion.

Is my data safe when using an online JSON to CSV converter?

On this tool, yes. The conversion happens entirely in your browser using JavaScript. Nothing gets sent to a server. You can even disconnect from the internet after the page loads and it still works. Not all online converters work this way, though — always check before pasting sensitive data.

What is the difference between CSV and TSV?

CSV uses commas to separate values. TSV uses tabs. That is really the only difference. TSV can be easier to work with when your data itself contains commas (like addresses). This tool lets you switch between both — just change the delimiter option before converting.

Why are some CSV cells wrapped in double quotes?

The CSV spec (RFC 4180) says any value containing a comma, newline, or double quote must be enclosed in double quotes. The tool handles this automatically. If a value itself has a quote character, it gets escaped by doubling it — so He said "hi" becomes "He said ""hi""" in the output. Totally normal, and Excel reads it correctly.

Share: