Convert CSV to JSON in your browser
CSV is the universal export format of spreadsheets, databases and analytics tools, while JSON is what APIs, JavaScript apps and NoSQL databases expect. This CSV to JSON converter bridges the two: paste or open a CSV file and get well-formed JSON instantly. It detects the delimiter automatically, handles quoted fields correctly and converts numbers, booleans and empty cells into proper JSON types. Your data never leaves your device.
Features
- Array of objects or array of arrays — use the header row as keys, or keep rows as plain arrays.
- Delimiter auto-detection for comma, semicolon, tab (TSV) and pipe, with manual override.
- Standards-compliant parsing of quoted fields, embedded commas, line breaks and escaped quotes.
- Type conversion — numbers, true/false and null, while keeping leading-zero values like ZIP codes as text.
- Duplicate and blank headers are renamed automatically (name_2, column_3) so no data is overwritten.
- Pretty or minified output, one-click copy and .json download.
- Private — files are read locally and never uploaded.
Example
This CSV:
id,name,active
1,Ada Lovelace,true
2,"Turing, Alan",false
becomes:
[
{ "id": 1, "name": "Ada Lovelace", "active": true },
{ "id": 2, "name": "Turing, Alan", "active": false }
]
The quotes around "Turing, Alan" keep the comma inside the field instead of splitting it into two columns.
Tips for clean conversions
- Make sure the first row contains the column names you want as JSON keys. Short, consistent names without spaces (for example
first_name) are easiest to use in code. - Check the row and column count shown under the editor. If the number of columns looks wrong, the delimiter is probably wrong too.
- Watch for numbers formatted as text. Values such as
1,234.50or12%stay as strings because they aren't valid JSON numbers. Clean them in your spreadsheet first if you need numbers. - Large files of several megabytes convert fine, but very large exports may be slow to display. Download the result instead of scrolling through it.
Related tools
Need to go the other way? The JSON to CSV Converter turns JSON arrays into spreadsheet-ready CSV. To validate or reformat the result, paste it into the JSON Formatter.