CSV to JSON Converter

Paste CSV with a header row and get an array of JSON objects. Values stay as text.

How it works

The first row is treated as the header row. Each remaining row becomes a JSON object using the column names as keys. This is useful for API payloads, data import work, and quick spreadsheet conversions.

Your data stays in your browser

This tool runs on JavaScript inside your browser. Nothing you add here is uploaded to our server, so it works for confidential data too. How we handle data

  • No upload
  • Processed on your device
  • No account

How does the CSV become JSON?

The first row gives the key names, and every row after it becomes one object. So a sheet with columns name, city and age turns into [{"name": "Ali", "city": "Lahore", "age": "29"}, ...]. Every value is kept as text, including numbers, so convert types in your code if you need them.

Which separator should I choose?

Comma for most CSV files. Semicolon for files exported by Excel in countries that write decimals with a comma. Tab for data copied straight out of a spreadsheet, which pastes as tab-separated text.

What can't it handle?

Quoted fields that contain commas or doubled quotes are fine, but a quoted field that spans more than one line is split at the line break. Very large files are better converted with a script. To check the output, paste it into the JSON Formatter; to remove repeated rows first, use Remove Duplicate Lines. Need IDs for each row? The UUID Generator makes them in bulk.

Questions people ask

Can I convert an Excel file to JSON?

Yes. Copy the cells in Excel or Google Sheets, paste them here and choose Tab as the separator, or save the sheet as CSV first.

Why are my numbers in quotes?

The converter keeps every value as text. Convert numbers and true/false values in your own code if your app needs real types.

Does the first row have to be headers?

Yes. The first row becomes the JSON keys. Add a header row if your data doesn't have one.

Are commas inside quotes handled?

Yes. A field like "Lahore, Pakistan" stays as one value.

Related tools