ToolLane.online

How to Convert Between JSON and CSV

Quick answer: To make a spreadsheet file, paste a JSON array of objects into the JSON to CSV tool and press Convert to CSV. To go back, paste CSV into the CSV to JSON tool and press Convert to JSON.

JSON and CSV hold the same kind of data in different shapes. JSON is the format apps and websites use to pass data around, while CSV is the plain table format that spreadsheets open. ToolLane has a tool for each direction, and both run in your browser, so your data is never uploaded. Both are free, with no sign-up, and both accept up to 1,000,000 characters.

How to convert JSON to CSV

  1. Open the JSON to CSV tool and paste your JSON into the box.
  2. Make sure it is a JSON array of objects, such as [{"name":"Ali","age":25},{"name":"Sara","age":30}]. Each object becomes one CSV row, and the object keys become the header row.
  3. Press Convert to CSV.
  4. Read the CSV in the result box. If the JSON is invalid, you get the exact error message and no fake output is made.
  5. Press Copy result to copy the CSV, or use the download link to save it as a .csv file you can open in a spreadsheet.

How to convert CSV to JSON

  1. Open the CSV to JSON tool and paste your CSV text, or choose a .csv file instead.
  2. Check that the first row holds the field names, such as name,age,city, because the first row becomes the field names for every row.
  3. Press Convert to JSON.
  4. Read the JSON array in the result box. Values in double quotes, including commas and line breaks inside them, are read correctly, so a value like "Lahore, Pakistan" stays in one piece.
  5. Press Copy result to copy the JSON, or use the download link to save it as a .json file.

Getting a clean result

Most failed conversions come from the input shape, not the tool. For JSON to CSV, a single object on its own will not work: wrap your objects in square brackets so they form an array. For CSV to JSON, keep the header row first and make sure every row has the same number of values as the header, so no field lands under the wrong name.

Frequently asked questions

Is converting between JSON and CSV free?

Yes. Both conversions are free, with no sign-up, and your data never leaves your browser.

What JSON works for JSON to CSV?

A JSON array of objects, such as [{"name":"Ali"},{"name":"Sara"}]. Each object becomes one CSV row.

What becomes the field names in CSV to JSON?

The first row of the CSV becomes the field names for every row.

← All tools