CSV to JSON converter

Turn a CSV table into JSON objects, ready for code or an API.

On your device
Choose CSV files

or drop them here, or paste them

About CSV to JSON

Developers and many web tools want data as JSON. This converter reads your CSV, uses the first row as field names, and turns every other row into a JSON object.

Every value stays text, exactly as in your file, so postcodes, phone numbers and IDs keep their leading zeros. The separator (comma, semicolon or tab) is detected for you, and the file never leaves your device.

The result is an array of objects with one object per row, nicely indented so you can read it. Each field name comes from the matching heading in the first row. A cell left empty becomes an empty string.

Quoted values that contain commas or line breaks stay in one field. If you need numbers instead of text, change them in your code or in a JSON editor afterwards. Customer lists and order exports are often private, which is why the conversion happens on your own device.

Questions and answers

To keep them exactly as written: converting automatically would drop leading zeros from things like postcodes. Your code can turn them into numbers where needed.

Yes. The first row gives the field names. Without one, your first data row would be used as names.

Yes. It is indented with two spaces so it is easy to read and compare.