JSON to CSV & CSV to JSON Converter

Convert JSON to CSV and CSV to JSON instantly. Handles nested JSON, arrays. 100% private - no data sent to server.

Flatten Nested • Excel Export • Table View
Share on WhatsApp Back to Home Page

What is a JSON to CSV and CSV to JSON Converter?

JSON (JavaScript Object Notation) is the standard format used by APIs, web apps and NoSQL databases like MongoDB. CSV (Comma-Separated Values) is the format used by Excel, Google Sheets and data analysis tools. This free converter turns a JSON array of objects into a downloadable CSV file, and converts CSV back into clean JSON.

Example: [{"name":"John","age":35,"city":"Atarra"}] becomes a CSV with the header name,age,city and the row John,35,Atarra, which opens directly in Excel.

Features

  • Nested JSON support: nested objects are flattened using dot notation, so {"user":{"name":"John"}} becomes a user.name column.
  • Arrays: arrays inside a record are converted to JSON strings.
  • Header option: include or exclude the header row.
  • File upload and download: upload your .json or .csv file and download the result with one click.
  • 100% private: all conversion happens in your browser. Your data is never uploaded, stored or tracked, and the tool keeps working offline after the page loads.

How to Convert JSON to CSV

  1. Paste your JSON array of objects into the input box, or upload a .json file.
  2. Choose whether to include the header row.
  3. Click Convert to CSV.
  4. Click Copy CSV or Download CSV.

How to Convert CSV to JSON

  1. Paste your CSV data (the first row must be the header) or upload a .csv file.
  2. Click Convert to JSON.
  3. Click Copy JSON or Download JSON.

Example

Input JSON:

[
  {"name": "John", "age": 35, "city": "Atarra"},
  {"name": "Paul", "age": 28, "city": "Prayagraj"}
]

Output CSV (as it opens in Excel):

name age city
John35Atarra
Paul28Prayagraj

Raw CSV text:

name,age,city
John,35,Atarra
Paul,28,Prayagraj

How nested JSON is flattened

JSON CSV column Value
{"user":{"name":"John"}}user.nameJohn
{"user":{"address":{"city":"Atarra"}}}user.address.cityAtarra
{"tags":["a","b"]}tags["a","b"]

Frequently Asked Questions

Does it support nested JSON?

Yes. Nested objects are flattened with dot notation, for example user.name, so they fit into CSV columns.

Is my data private?

Yes. The conversion runs entirely in your browser. Your data is never sent to any server, and the tool works offline after the page loads.

How large a file can I convert?

Files up to [X] MB convert in seconds. For larger files, split the data into smaller chunks for best performance.

What JSON format does the tool accept?

The input must be an array of objects, such as [{"a":1},{"a":2}]. A single object or invalid JSON will show an error.

Will the CSV open correctly in Excel?

Yes. Download the CSV and open it in Excel or Google Sheets. Each JSON key becomes a column header.