CSV to JSON Converter
Turn a spreadsheet export into JSON in one step. The separator is detected automatically, the first row becomes the keys, numbers and true or false values get the right type, and quoted fields with commas or line breaks are read correctly.
How to Convert CSV to JSON
Quick answer: paste your CSV or open a .csv file; the JSON appears below. Download it as .json or copy it.
-
1
Add your CSV
Paste it or open a .csv file.
-
2
Check the separator
Auto detect works for most files.
-
3
Pick the output shape
Objects or rows, typed values.
-
4
Download .json
Or copy it.
What You Get
Why Convert CSV to JSON?
Spreadsheets are where most data starts, but apps, websites and web services need JSON. Converting a CSV export to JSON lets you load product lists, contacts, settings or test data into a program, a database or a content system without writing code. Each row becomes an object, and each column header becomes a key, so the data keeps its meaning.
Reliable CSV Reading
CSV looks simple but has rules: fields containing commas, quotes or line breaks are wrapped in double quotes, and quotes inside them are doubled. The converter follows those rules, so "Chen Wei, Jr." stays one value and multi-line addresses stay in one field. The separator is detected from the first lines, covering commas, semicolons, tabs and pipes, and you can set it by hand if needed. An invisible UTF-8 marker at the start of the file is removed automatically.
Numbers, True/False and Empty Cells
With typed values on, cells such as 42 or 3.5 become numbers, true and false become real true and false values, and null becomes null. Text that only looks like a number but has leading zeros, such as a postcode like 01234, stays text so the zero is not lost. Turn the option off to keep every value as text, which is safer for codes and IDs.
Objects, Rows and Nested Data
Array of objects is the usual shape: one object per row with the headers as keys. Array of rows gives plain lists of values, which is compact and keeps duplicate column names. Nested objects turns headers such as address.city and address.zip into an address object containing city and zip, the opposite of flattening in JSON to CSV.
Example
The sample has the columns id, name, email, city and active. The result is an array of three objects such as { "id": 1, "name": "Ana Silva", "email": "ana@example.com", "city": "Lisbon", "active": true }, with numbers and true or false values typed correctly. Download it as converted.json or copy it into your project.
Who Converts CSV to JSON?
Developers loading spreadsheet data into apps and test suites, content managers importing products and articles, analysts preparing data for charts and dashboards, teachers and students turning class data into a format for coding exercises, and no-code builders feeding lists into automation tools that expect JSON.
Good to Know
Empty lines at the end of the file are ignored. If a row has more values than headers, the extra values are dropped; if it has fewer, the missing keys get empty values. Headers that are empty are named column1, column2 and so on. To check the result, open it in the JSON Formatter.
Private, Free and Instant
The converter is free and works with files up to 5 MB. There is no sign-up, no row limit beyond the 5 MB file size and nothing to install. The conversion runs in your browser, so customer lists, exports, settings files and other private data are never uploaded or stored. You can open a file from your device, paste data straight from another program, and download the result with the right file extension. It works on Windows, Mac, Linux, Chromebooks, iPhone and Android.
CSV to JSON: Structuring Spreadsheet Data for Programs
CSV is great for spreadsheets, and JSON is the favourite of web applications and APIs. Converting lets you load table data into code without writing a parser.
Two common outputs
- Array of objects: each row becomes an object with the headers as keys. This is easiest to use.
- Array of arrays: rows become lists of values, which is more compact.
Data types
CSV has no types, so every value is text. A good converter turns numbers and true or false values into JSON numbers and booleans. Leading zeros in codes, such as postcodes, should stay as strings or they will be lost.
Watch for
Quoted values that hold commas or line breaks, empty cells and duplicate headers. For the other direction, use JSON to CSV.
Frequently Asked Questions
Questions about CSV to JSON