CSV to JSON
Convert CSV data into a JSON array.
What the CSV to JSON converter does
This tool turns comma-separated values (CSV) into a clean, indented JSON array. It reads the first line of your input as the column headers, then converts every following row into a JSON object whose keys are those headers and whose values are the cells in that row. The result is a standard array of objects that you can drop straight into JavaScript code, an API request, a config file or a database import.
It is useful for developers and data analysts who frequently receive data as spreadsheets or CSV exports but need it in JSON to work with web applications and APIs. Instead of writing a one-off parsing script, you can paste the data and get well-formatted JSON in a second.
How to use it
Paste your CSV into the input box, making sure the first row contains the column names. Click Convert to JSON and the formatted array appears in the output box. You can then use Copy to send it to your clipboard, or Download .json to save it as a file named data.json.
The parser understands quoted fields, so a value wrapped in double quotes can safely contain commas, and a doubled quote ("") inside a quoted field is treated as a literal quote character. Leading and trailing spaces around headers and values are trimmed for tidy output.
Notes and tips
Your CSV must include a header row plus at least one data row; otherwise the tool reports an error. Every value in the resulting JSON is a string, including numbers and booleans, because CSV does not carry type information - convert types in your own code if you need them. Rows are split on new lines, so for the most reliable results give each record its own line and keep multi-line content inside quoted fields to a minimum.