↑

Free JSON to CSV Converter

What this tool does

The JSON to CSV Converter turns a JSON array of objects into clean CSV with headers taken from the object keys, flattening nested objects into dot-key columns. It also converts CSV back to JSON, with or without a header row, and safely quotes values containing commas or quotes. Copy the output or download it as a .csv or .json file. Free, private and instant in your browser, with no signup.



-
Rows
-
Columns
-
Input size
-
Output size
Output
JSON to CSV: object keys become columns. CSV values with commas or quotes are safely quoted.

Let us know

Please share your experience with this tool.

Thanks for rating!
No ratings yet — be the first!

How do I convert JSON to CSV?

Paste a JSON array of objects and the CSV appears instantly, with a header row built from the object keys. The sample converts three students into three rows under the columns name, city and score: Ali Khan, Lahore, 92 and so on. Keys that appear in only some objects still get a column, with empty cells where a value is missing. Nested objects are flattened into dot-key columns by default, so {"user": {"name": "Ali", "age": 30}} becomes the columns user.name and user.age, and arrays inside values are kept as JSON text in their cell. Values containing commas, quotes or line breaks are wrapped in quotes with inner quotes doubled, exactly as spreadsheet software expects. Copy the output or download it as converted.csv.

How do I convert CSV back to JSON?

Switch the mode to CSV to JSON and paste CSV data. With "First CSV row is header" on (the default), the first row provides the keys and every following row becomes one object in a JSON array. Quoted fields are parsed properly, so a cell like "a, b" stays one value instead of splitting at the comma. Turn the header option off and the keys become column1, column2 and so on. One thing to know: CSV has no data types, so every value comes back as a string: a score of 92 in CSV becomes "92" in JSON. If you need numbers or booleans, convert them in your code after parsing, which is a one-line map in most languages.

What JSON shape does the converter expect?

An array of flat or nested objects: [{"name": "Ali", "score": 92}, ...]. A single object on its own is rejected with a clear message, because CSV needs rows; wrap it in square brackets to convert it as a one-row table. Objects may have different keys; the header row is the union of all keys in first-seen order. Numbers, booleans and null are written as their plain text forms (true, false, empty for null). Very deeply nested data flattens recursively, so address.city.zip becomes a single column. If flattening is switched off, nested objects are written as JSON text inside the cell, which preserves the structure but makes the CSV harder to use in a spreadsheet.

When should I use CSV and when JSON?

CSV is the interchange format for spreadsheets and tabular tools: Excel, Google Sheets, databases and data pipelines all read it, and it is compact and human-scannable. JSON is the format for APIs and application data because it carries types, nesting and structure. The common workflow is: receive JSON from an API, convert to CSV to inspect, clean or share it in a spreadsheet, then convert the edited CSV back to JSON for import. This converter handles both directions in one place, with row and column counts and input/output sizes shown so you can sanity-check large conversions before downloading.

What are common conversion problems?

Invalid JSON is the most frequent: trailing commas, single quotes instead of double quotes, or unquoted keys all fail with the parser error shown on screen. A common CSV problem is unquoted commas inside values, which shift every later column; this converter quotes such values automatically on output and reads quoted fields correctly on input. Duplicate header names in CSV will overwrite each other in the JSON objects, so rename duplicates first. Excel sometimes mangles leading zeros and long numbers when opening CSV; that is a spreadsheet display issue, not a conversion error, and importing the file as text columns fixes it.

Is it free and private?

Yes. The JSON to CSV converter is free, with no signup, no account and no limits. Conversion runs entirely in your browser, so your data is never sent to a server, stored or logged, and it disappears when you clear the fields or close the tab. That matters for customer lists, exports and API responses. For developers, data analysts, marketers and students who need tabular data moved between JSON and CSV quickly, in either direction, with a downloadable result, this page does the job in seconds.

FAQs

What JSON shape is required?

An array of objects, like [{"name":"Ali","score":92}]. Keys become CSV columns and each object becomes a row.

How are nested objects handled?

They are flattened into dot-key columns by default: {"user":{"name":"Ali"}} becomes a user.name column.

Can I convert CSV to JSON too?

Yes. Switch the mode. The first row becomes the keys, or turn the header option off for column1, column2 keys.

Why are numbers strings in the JSON output?

CSV has no data types, so every value is text. Convert types in your code after parsing if you need numbers.

How are commas inside values handled?

They are wrapped in quotes with inner quotes doubled, and quoted fields are read back correctly.

Is my data stored anywhere?

No. Conversion runs in your browser. Data is never sent to a server or stored.


Author

Awais Arshad

Web Tools Developer & Content Creator at FastToolKit.