CSV to JSON Converter — Turn CSV data into clean JSON objects or arrays, right in your browser.

Paste a CSV or open a file and get JSON straight away. The delimiter is detected for you, quoted values and commas inside cells are handled, and numbers can be converted to real numbers. Copy the result or download it as a .json file. Nothing is uploaded.

Convert my CSV Your CSV stays in your browser
CSV to JSON converter showing a table of rows becoming a JSON array of objects

Your CSV

JSON result

0Records
0Columns
–Delimiter
0 BJSON size
The guide

CSV to JSON Converter Guide: Delimiters, Headers, and Clean Output

Learn what each option does and how to get JSON your code can use.

A simple explanation

What does a CSV to JSON converter do?

CSV is a plain table: one row per line, values split by a comma or another delimiter. JSON stores the same data as objects and arrays that code can read directly. A converter turns each CSV row into a JSON object, using the header row as the key names.

Paste your CSV or open a file and the JSON updates as you go. Quoted values, commas inside quotes, doubled quotes and line breaks inside a cell are handled the way spreadsheet apps export them. If the CSV has stray spaces, clean it first with the Whitespace Remover.

Common reasons to convert

Why People Convert CSV to JSON

Web and app development

Load spreadsheet data into a front end, a mock API or a test fixture without writing a parser.

Data and APIs

Turn exports from Excel, Google Sheets or a database into the JSON an API or import script expects.

Config and content

Move product lists, translations or settings kept in a sheet into a JSON file your project can use.

What each option does

The Conversion Options Explained

Delimiter

Auto-detect checks the first row for commas, semicolons, tabs or pipes. Pick one by hand if a file mixes them. Many European exports use semicolons.

JSON shape

Array of objects gives one object per row keyed by the header. Array of arrays keeps every row as a plain list, header row included.

First row is the header

On, the first row becomes the keys. Off, keys are named column_1, column_2 and so on. Empty or repeated header names are fixed the same way.

Convert numbers, true/false and null

Turns 42 into a number and true into a boolean. Values like 007 or long ID numbers over 15 digits stay as text so nothing is lost.

Trim, skip empty rows, empty as null

Trim removes spaces around values, Skip empty rows drops blank lines, and Use null for empty values writes null instead of an empty string.

Convert in a few steps

How to Use the CSV to JSON Converter

  1. Paste your CSV into the first box, or press Open file and choose a .csv, .tsv or .txt file.
  2. Leave the delimiter on Auto-detect, or choose the one your file uses.
  3. Pick the JSON shape and formatting, and tick or untick the options.
  4. Check the record and column counts, then press Copy JSON or Download .json.
See the result

A Small CSV to JSON Example

CSV: name,age,city Asha,29,Pune Rohan,34,"Delhi, NCR" JSON (array of objects): [ { "name": "Asha", "age": 29, "city": "Pune" }, { "name": "Rohan", "age": 34, "city": "Delhi, NCR" } ]

The comma inside "Delhi, NCR" stays part of the value because the cell is wrapped in quotes. To write a quote inside a quoted cell, double it: "".

Better results

Simple Tips for Clean Conversions

  • If everything lands in one column, the delimiter is wrong. Choose it by hand.
  • Open Excel files, then save as CSV (UTF-8) first. Accents and symbols convert correctly that way.
  • Keep IDs, phone numbers and ZIP codes as text by turning off number conversion if leading zeros matter.
  • Use the minified option for small payloads and pretty printing when you want to read or review the data.
Good to know

Limitations and Privacy

Privacy

Your CSV is converted in your browser. It is not uploaded, sent to our server or stored. Only your option choices are remembered on your device.

Limitations

Very large files depend on your device memory, so files over about 15 MB are refused. The tool reads one flat table. It does not build nested JSON from dotted headers and does not read .xlsx files directly.

Common questions

CSV to JSON Converter FAQ

How do I convert CSV to JSON?

Paste your CSV into the box or open a file. The JSON appears at once, with each row turned into an object that uses the header row as keys. Then copy it or download it as a .json file.

Does it work with semicolons or tabs instead of commas?

Yes. Auto-detect checks the first row for commas, semicolons, tabs and pipes. You can also pick the delimiter yourself if the guess is wrong.

What if my CSV has no header row?

Untick First row is the header. The keys are then named column_1, column_2 and so on, and the first row stays in the data.

How are commas and quotes inside a cell handled?

A cell wrapped in double quotes can contain commas, line breaks and doubled quotes, just like a spreadsheet export. The quotes are removed in the JSON and the text is kept.

Will numbers and true/false become real JSON types?

With Convert numbers, true/false and null ticked, plain numbers become numbers and true or false become booleans. Values with leading zeros, such as 007, and numbers over 15 digits stay as text so they are not changed.

Can I get an array of arrays instead of objects?

Yes. Set JSON shape to Array of arrays. Every row, including the header row, becomes a list of values.

Can I open an Excel file directly?

Not .xlsx files. Save the sheet as CSV from Excel or Google Sheets first, then open or paste that file here.

Is my data uploaded or saved?

No. The conversion runs in your browser and your data never leaves your device. Only your option choices are remembered for next time.

From people using this tool

Reviews

Loading reviews…
Keep going

More tools in the box

The homepage features dozens more free tools that don't require an API key.

Suggest a tool