Nothing you open here is ever uploaded

Convert CSV to JSON

The first row supplies the key names and every row under it becomes one object. Quoted commas, doubled quotes and line breaks inside a field are read properly, and a line that is blank — or that holds nothing but separators — is skipped rather than becoming an empty object. The result updates as you type, before you copy anything.

This page loads no libraries at all. The work is done by the browser itself. Your file is read on your own machine and never sent anywhere. Open your browser’s network tab and watch while you use it.

Questions

Are numbers and true or false converted?

No. Every value comes out as a string, 1250.00 and true included. Guessing turns a product code into a number and loses its leading zeros, so nothing is coerced here. Convert the fields at the other end, where you know which ones they are.

What if two columns share a name?

The later one wins and the earlier column is lost, because an object cannot hold the same key twice. Rename one of them in the header row before converting.

What if a row has more or fewer fields than the header?

A short row gets empty strings for the keys it did not reach. A long row loses the extra fields without a warning, because the header row decides how many fields there are.

Does it read semicolon or tab separated files?

No. Only the comma separates fields. A semicolon or tab file comes back as one object per row with a single key: the whole header line, holding the whole data line as its value.

Other data & spreadsheets tools

Everything here is free and works the same way, in your browser.

New tools, once in a while

A new DeskKit tool lands every week or two. Leave an address to hear about it. Nothing else is ever sent, and one click removes you.