Free tools

CSV to JSON converter

Paste CSV or open a file and get JSON back: an array of objects keyed by your column names. Quoted fields, line breaks inside values and semicolon files are handled; broken rows are reported by line.

Runs in your browser. Nothing you type or open on this page is uploaded; it works with your connection switched off once the page has loaded.

How to use it

  1. Paste your CSV, or open a .csv file from your computer (it is read in the browser, not uploaded).
  2. Check the options: the delimiter is detected from the first line, and the first row is taken as the column names.
  3. Press Convert. Copy the JSON or download it as a .json file.

Need this in bulk, or from code?

The same job is one HTTP call to our API: POST /v1/convert/csv-to-json. 100 calls a day free with no key; paid plans from $9 a month. One key works for every API.

Read the API docs for this See the API plans

Questions

Is my file uploaded?

No. The file is read and converted by this page in your browser. Nothing is sent to us or anyone else.

Does it handle commas and line breaks inside values?

Yes, the way RFC 4180 (the CSV standard) and Excel write them: a value in double quotes can hold the delimiter, line breaks, and quotes written twice ("").

Why does it stop with an error instead of converting?

When a row has more or fewer fields than the first, or a quote is out of place, guessing would silently shift data into the wrong column. It tells you the line instead, so you can fix the source.

Are numbers converted?

Only if you tick “Numbers and true/false as JSON values”. Even then a value is converted only when nothing is lost: 42 becomes a number, but 007, 1.50 and 1e3 stay text, so ZIP codes, prices and IDs survive.

My file uses semicolons. Is that fine?

Yes. Excel in much of Europe saves CSV with semicolons; the delimiter is detected from the first line, or you can pick comma, semicolon, tab or pipe yourself.

How big a file can it take?

It runs in your browser, so the limit is your computer's memory. A 5 MB file converts in a fraction of a second on a typical computer; for regular jobs, or from your own code, use the API.

Related free tools