Direction
Switch between JSON to CSV and CSV to JSON. When you switch, the current result moves into the input box, so you can convert straight back the other way.
JSON to CSVAfterCSV to JSONPaste an array of JSON objects to turn it into a CSV table you can open in a spreadsheet, or switch the direction to turn CSV back into JSON. Pick the delimiter and header row to match your file. Everything runs in your browser, so your data stays on your device.
JSON stores data as objects with named fields, while CSV stores it as rows and columns that a spreadsheet can read. This converter maps one to the other. Going to CSV, it collects every key across your objects to build the columns, then writes one row per object. Going to JSON, it reads the header row for the field names and turns each row into an object. Nested values are kept as JSON inside a cell, so no data is lost in the round trip.
Switch between JSON to CSV and CSV to JSON. When you switch, the current result moves into the input box, so you can convert straight back the other way.
JSON to CSVAfterCSV to JSONPick the character between fields: comma for standard CSV, semicolon for files from spreadsheets in some regions, or tab for TSV. It applies to both directions.
a,b,cAftera;b;cGoing to CSV, write the object keys as the first row. Coming from CSV, treat the first row as the field names. Turn it off and columns become column1, column2, and so on.
name,roleAfterAda,EngineerWhen building JSON from CSV, turn plain numbers into numbers and true or false into booleans. Values with a leading zero, like 007, stay text so ids are not changed.
"active": "true"After"active": true{"city": "Paris"} or ["a", "b"] is written into a single cell as JSON text, so no data is lost. If you need each nested field in its own column, flatten the JSON first.null becomes an empty cell.Excel sometimes changes a CSV when you double-click to open it. These are the problems people hit most:
JSON is how APIs and apps move data around, but people read and edit data in spreadsheets. Here are the most common reasons to convert between the two: