Converters
CSV to JSON
The CSV to JSON converter reads the first row as column names and turns every following row into a JSON object. Choose comma, semicolon or tab as the delimiter, so exports from European versions of Excel and tab-separated files work too.
The output is ready to use as test data, seed data or an API payload.
How to use the CSV to JSON
- 1Use the CSV to JSON right on this page, or open the full workspace for history, sharing and every other tool.
- 2Paste your input, upload a file, or drag and drop a file onto the input box (up to 25 MB).
- 3The result appears in the output panel automatically and updates when you change the input or an option.
- 4Use Copy Output or Download to save the result. Nothing is uploaded to a server.
Example
A three-line CSV becomes an array of two JSON objects.
Input
name,age Ada,36 Grace,42
Output
[
{
"name": "Ada",
"age": "36"
},
{
"name": "Grace",
"age": "42"
}
]When to use it
- Turning a spreadsheet export into seed data for an application
- Converting a product list into JSON for a static site
- Preparing mock API responses from data a colleague maintains in Sheets
Tips and common mistakes
- Make sure the first row contains unique column names.
- Quoted fields may contain commas and line breaks.
- Save spreadsheets as UTF-8 CSV to keep accented characters intact.
Frequently asked questions
Which delimiters are supported?
Comma, semicolon and tab — pick the one your file uses in the delimiter option above the input.
Are numbers converted?
Values are kept as text so leading zeros, phone numbers and IDs are not altered.