CSV ↔ JSON Converter
CSV ↔ JSON Converter
Convert between CSV and JSON formats. All processing happens in your browser.
About the CSV ↔ JSON Converter
CSV is how spreadsheets and databases export data; JSON is how web APIs and JavaScript consume it. Moving data between the two is a daily chore: importing a spreadsheet into a seed script, turning an API response into something a colleague can open in Excel, or preparing fixtures for tests.
This converter turns CSV into a JSON array of objects — using the header row as property names — and turns a JSON array of objects back into CSV with a header row. You can choose comma, semicolon, tab or pipe as the delimiter. Conversion runs entirely in your browser.
Common uses
- Turning a spreadsheet export into JSON seed data or test fixtures.
- Converting an API response into CSV for analysis in Excel or Google Sheets.
- Preparing data for bulk-import endpoints that expect JSON.
- Converting semicolon-separated European CSV files.
How to use it
- Choose the direction: CSV → JSON or JSON → CSV.
- Select the Delimiter used (or wanted) in the CSV.
- Paste your data and press Convert, then copy or save the result.
Example
CSV with a header row converted to JSON:
id,name,active
1,Alice,true
2,Bob,false
[
{
"id": "1",
"name": "Alice",
"active": "true"
},
{
"id": "2",
"name": "Bob",
"active": "false"
}
]
Tips and common pitfalls
- CSV has no data types, so values come through as strings. Convert numbers and booleans in your code if you need real types.
- Fields that contain the delimiter or quotes must be wrapped in double quotes, with inner quotes doubled (
""). Each record must be on a single line — line breaks inside a field are not supported. - For JSON → CSV, the input should be an array of flat objects. Nested objects and arrays do not map cleanly to columns; flatten them first.
- Excel may reformat values such as long numbers, leading zeros and dates when it opens a CSV file. Import the file as text if exact values matter.
Frequently asked questions
Does the first row have to be a header?
Yes for CSV → JSON: the header row provides the property names for each object.
What happens with missing fields in JSON → CSV?
The columns are taken from the keys of the first object. Later objects that lack one of those keys get an empty cell, and keys that appear only in later objects are not included — so make sure the first object has every property you need.
Is there a size limit?
Conversion happens in your browser, so the practical limit depends on your device. Tens of thousands of rows are usually fine.
Is my data uploaded?
No. The conversion runs locally in your browser.