How to use it
- Add a CSV file.
- Say if the first row has the column names and whether to convert numbers.
- Press Convert to JSON, then copy or download the result.
CSV to JSON
Turn a CSV table into JSON, where each row becomes an object and the column names are the keys. It is useful for web developers, APIs and test data.
Options
Say if the first row has the column names, and whether numbers should be converted from text to real numbers. Leave numbers as text for codes such as phone numbers or postcodes with leading zeros.
Result
Copy the JSON or download it. Quotes and commas inside fields are handled correctly. The conversion is done in your browser.
Example: data for a small website
You keep a list of shops in a spreadsheet with the columns name, city and phone. Save it as CSV, add it here and press Convert. You get a JSON array where each shop is an object such as {"name": "Blue Bar", "city": "Patras"}. A web page can load that file directly and show the list.
Quick tips
- The first row is used as the names of the keys, so give every column a short, clear header.
- Numbers can be turned into real JSON numbers instead of text.
- Check the separator (comma or semicolon) if all the data lands in one key.
Common problems and fixes
- Everything is in one column. Your file uses semicolons, as many European Excel versions do. Choose the semicolon separator.
- Greek letters look broken. Save the CSV as UTF-8 in your spreadsheet program before you convert it.
Questions
What does the JSON look like?
An array of objects, one per row, for example [{"name":"Anna","age":31}].
What if there is no header row?
Switch off the header option. Rows become arrays of values.
Is the file uploaded?
No. It is converted in your browser.