CSV to JSON Converter

Paste CSV with a header row, get a JSON array.

Convert CSV exported from a spreadsheet or database into a JSON array of objects. The first row is used as the property names, and each following row becomes one object, ready to use as a fixture, a seed file or an API request body.

Values are typed automatically: numeric cells become numbers and true or false become booleans, so you do not have to post-process strings.

How to use it

  1. Paste CSV with a header row, or drop a .csv file onto the editor.
  2. Check the Table view to confirm the columns were detected correctly.
  3. Copy or download the JSON from the right pane.

Questions

Does my CSV need a header row?

Yes. The first line supplies the keys for every object. Add a header line if your export does not include one.

Are quoted fields with commas handled?

Yes. Quoted fields, escaped quotes and line breaks inside quotes are parsed according to RFC 4180.

Which delimiters are supported?

The delimiter is detected automatically, so comma, semicolon and tab separated files all work.

All tools