# CSV to JSON

> Turn CSV rows into JSON objects. Runs entirely in your browser — nothing you paste is sent anywhere.

Source: https://toffeekit.com/tools/csv-to-json

**Category:** [Data](https://toffeekit.com/category/data) · **Price:** Free · **Runs:** in your browser, nothing is uploaded

Open the tool: https://toffeekit.com/tools/csv-to-json

**Also useful for:** csv, json, convert, spreadsheet

## How it works

1. Paste your CSV into the CSV box, or click Sample.
2. Set the Delimiter, or leave it on Auto.
3. Switch First row is header, Detect numbers & booleans, Rebuild nested and Parse JSON in cells to suit your data.
4. Read the JSON output, then click Copy or Save as data.json.

## FAQ

### How do I convert CSV to JSON?

Paste the CSV. With First row is header on, you get an array of objects whose keys are the column names.

### What if my CSV uses semicolons or tabs?

Leave Delimiter on Auto and it is detected for you. Or choose Comma, Semicolon, Tab or Pipe yourself.

### Why did my ZIP codes lose their leading zeros?

Detect numbers & booleans turns 007 into 7. Switch it off to keep every value as text, which is best for ZIP codes, phone numbers and IDs.

### How do I get nested JSON from a flat CSV?

Name your columns with dots, like address.city, and keep Rebuild nested on. Each row becomes an object with an address object inside it.

### What does Parse JSON in cells do?

If a cell holds a JSON array or object, such as ["a","b"], it becomes real JSON instead of a string. This round-trips with the JSON to CSV tool.

### Is CSV to JSON free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so your files are processed on your device and never uploaded. It works on phones and computers alike.

## Privacy

CSV to JSON runs entirely in your browser. Your files and text are processed on your device and are never uploaded.

## Related tools

- [JSON to CSV](https://toffeekit.com/tools/json-to-csv) — Flatten JSON into a CSV you can open in Excel.
- [XML ⇄ JSON](https://toffeekit.com/tools/xml-json-converter) — Convert XML to JSON and back.
- [CSV Cleaner](https://toffeekit.com/tools/csv-cleaner) — Trim cells, drop empty rows, remove duplicates.
- [Delimiter Converter](https://toffeekit.com/tools/csv-delimiter-converter) — Switch between comma, semicolon, tab and pipe.
- [CSV Viewer](https://toffeekit.com/tools/csv-viewer) — Open a CSV as a sortable, searchable table.
- [JSON Viewer](https://toffeekit.com/tools/json-viewer) — Explore JSON as a collapsible tree.

