CSV to JSON Converter
Paste CSV text or open a CSV file and get a clean JSON array with one object for each row.
- Free
- No sign-up
- Runs in your browser
Separator between values
Output layout
Quoted values, commas inside quotes and line breaks inside quotes are handled. Your data is converted in this browser tab and never uploaded.
How to use CSV to JSON Converter
Add your CSV
Paste the data into the box or open a file of up to 2 MB. Files saved from Excel or Google Sheets as CSV work well.
Set the options
Choose the separator (comma, semicolon, tab or pipe), say whether the first row holds column names and decide whether numbers, true/false and empty cells should be converted.
Copy or download
Check the row count, pick a pretty or minified layout, then copy the JSON or download it as a .json file.
Example
A small table
Input
name,city,age / Ali,Multan,28 / Sara,Lahore,31, with number conversion on
Result
- Minified result:
- [{"name":"Ali","city":"Multan","age":28},{"name":"Sara","city":"Lahore","age":31}]
- The pretty layout puts every key on its own line
Common uses
Web and app development
Turn a spreadsheet of products, users or settings into JSON for a website, an API or a test.
Data checking
See how a CSV export really parses before you import it somewhere else.
Prototyping
Create sample data quickly for a chart or a mockup.
Moving between tools
Convert exports from a spreadsheet into the format that a database or a script expects.
Tips for better results
- If everything lands in one column, try a different separator. Excel in many regions saves CSV files with semicolons instead of commas.
- Leave the conversion option off to keep every value as text. With it on, values with leading zeros, such as 0300, and numbers longer than 15 digits stay text, so IDs and phone numbers are not damaged.
- Duplicate or empty column names are made unique automatically, for example city and city_2.
- A value that contains a comma or a line break must be wrapped in double quotes, and a quote inside a value is written twice.
Frequently asked questions
How does the converter treat the first row?
By default it uses the first row as the keys for every object. Untick the header option if your data has no column names, and the keys become column_1, column_2 and so on.
Can it handle commas inside values?
Yes, as long as the value is wrapped in double quotes, which is how spreadsheet programs export CSV.
What does “Convert numbers, true/false and empty cells” do?
It turns text such as 28 into the number 28, true and false into booleans and empty cells into null. Leave it off if you want every value kept as text.
Is there a limit on rows or file size?
A file can be up to 2 MB and 100,000 rows. For larger files, convert them in parts.
Does my data leave my device?
No. The conversion runs inside your browser, so private spreadsheets stay with you.
Last updated: