CSV to JSON
Turn a CSV spreadsheet into a JSON array of objects, using the header row as field names. Numbers and true/false values are converted automatically; everything else stays a string.
Free, with no account needed. It runs in your browser, so your file never leaves your device.
Select CSV file
or drop it here · up to 25 MB
About CSV to JSON
CSV to JSON turns a CSV file into a JSON array where each row becomes an object. The first row is used as the field names.
Last reviewed
How to use it
- Select a .csv file with a header row.
- Press Convert to JSON.
- Download the .json file.
When to use it
- Turning a spreadsheet export into data for a web app, script or API.
- Creating test data or seed data from a list kept in Excel.
- Converting a contact or product list into JSON for an import.
Good to know
- Values that look like numbers become numbers, true and false become booleans, and an empty cell becomes null. Everything else stays text.
- That means a code such as 007 becomes the number 7. Check postcode, phone and ID columns in the result and put the zeros back where they matter.
- The file must be UTF-8 text, which is what spreadsheets save as CSV (UTF-8).
Tips for a better result
- Save from Excel as CSV UTF-8 so names in other languages come through correctly.
- Make sure the first row holds the column names, with no blank or repeated headings.
- Check codes with leading zeros, such as 007 or PIN codes, in the result: values that look like numbers become numbers.
Questions about CSV to JSON
- Why did my leading zeros disappear?
- A value like 007 looks like a number, so it is converted to 7. Postcodes, phone numbers and IDs with leading zeros are affected, so check those columns.
- What if my CSV has no header row?
- The first row is always used as the field names, so add a header row first.
- How much does CSV to JSON cost?
- CSV to JSON is free, and you don't need an account. It runs inside your browser, so it costs us nothing to run and there are no credits to spend.
- Is my file kept after I use CSV to JSON?
- Your file never leaves your device. CSV to JSON works inside your browser, so nothing is uploaded and there is nothing for us to keep.
- Do I need an account to use CSV to JSON?
- No. CSV to JSON works without an account or sign-up. Open the page, choose your file and download the result.
- Does CSV to JSON work on a phone?
- Yes. CSV to JSON runs in the browser on phones, tablets and computers, with nothing to install. A very large file can be slow on an older phone, because your own device does the work.
- Is there a file size limit for CSV to JSON?
- We set no upload limit, because nothing is uploaded: the limit is your device's memory. If your browser can't process a file, the page offers to process it on our servers instead. That uses credits and accepts files up to 25 MB.