← All tools/Minifiers/Code/CSV to JSON Converter

CSV to JSON Converter

Paste CSV, get JSON — instantly, in your browser, with nothing uploaded.

JSON output

—

Rows
Columns

How it works

First row = keys; each later row = one object; numbers and booleans are parsed when the option is on.
Fields in double quotes may contain the delimiter or a line break. A row shorter than the header gets empty values for the missing keys.

Worked example: name,age,city with three rows becomes a JSON array of 3 objects — {"name": "Asha", "age": 28, "city": "Pune"}, {"name": "Ravi", "age": 34, "city": "Indore"}, {"name": "Meera", "age": 25, "city": "Jaipur"}. With “Numbers as numbers” off, age would be "28" (text) instead of 28.

Frequently asked questions

Is my CSV uploaded anywhere?

No — the conversion runs entirely in your browser. Your data never leaves your device.

What if a field contains a comma?

Put the field in double quotes, like "Pune, Maharashtra" — the converter reads it as one field. A double quote inside a quoted field is written as two double quotes.

What happens if a row has fewer fields than the header?

The missing keys get an empty string, so every object has the same keys. Extra fields beyond the header are dropped.

How are numbers handled?

With “Numbers as numbers” on, 28 becomes the number 28 and true/false become booleans. Turn it off if you need leading zeroes kept, like a PIN or a code.

Can I convert a whole spreadsheet?

Yes — copy the cells from your spreadsheet and paste them here. Tabs separate the columns, so pick the Tab delimiter first.

More tools

Tell us what you think

Loving this tool, or stuck on something? Tell us — it takes a minute.

We’ll only use your name and email to reply if needed. The tool and page are filled in for you.