Skip to content

CSV to JSON Converter

Upload a CSV file or paste its rows to create and download a JSON array of objects in your browser.

Use the first row for column names. Quoted values may contain commas.

Choose a local CSV file. It is read in your browser and is not sent to a server.

No CSV file selected.

Accepted input: comma, semicolon, or tab-separated CSV with a header row.

Upload or paste a CSV

Load a local CSV file or paste the rows into the input. The first row supplies the column names. This tool reads the file in your browser; it does not send the CSV to a server.

How rows become JSON objects

Each row after the header becomes one object in a JSON array. A file starting with name,age and followed by Alice,30 produces [{"name":"Alice","age":"30"}], an array containing one object. CSV values remain strings because the file does not declare whether a value is a number, date, or boolean.

Delimiters and quoted fields

Comma-separated data is detected automatically. Semicolon and tab-separated files can be selected when needed. A quoted value may contain a comma, and a double quote inside that value is written twice. Blank cells are kept as empty strings.

Checks before conversion

The converter requires a nonblank header row with unique column names. It stops when a quoted field is not closed or a data row contains more columns than the header. Turn off pretty-printing when you need compact JSON. Use Copy JSON to copy the displayed result or Download JSON to save it as a .json file.

Related tools

More utilities you may find useful.

View all tools