CSV to JSON

Convert CSV rows into a JSON array of objects. Header row becomes the object keys.

Runs in your browser Instant No signup, no tracking

About this tool

Paste CSV with a header row and get a pretty-printed JSON array. Numeric and boolean values are coerced; everything else stays as strings. Quoted fields, embedded commas, and escaped quotes are handled per RFC 4180. Great for feeding a spreadsheet export into a script, seeding a database, or eyeballing tabular data as JSON.

Example

Paste the input on the left and you will get output like this:

Sample CSV

id,name,email,active
1,Ada Lovelace,ada@example.com,true
2,Alan Turing,alan@example.com,true
3,Grace Hopper,grace@example.com,false

Resulting JSON

[
  {
    "id": 1,
    "name": "Ada Lovelace",
    "email": "ada@example.com",
    "active": true
  },
  {
    "id": 2,
    "name": "Alan Turing",
    "email": "alan@example.com",
    "active": true
  },
  {
    "id": 3,
    "name": "Grace Hopper",
    "email": "grace@example.com",
    "active": false
  }
]

How to use CSV to JSON

  1. Paste or type your CSV into the left pane.
  2. The JSON appears instantly in the right pane. Conversion runs in your browser — nothing is uploaded.
  3. Copy the result to your clipboard or download it as a file.

FAQ

Are numbers and booleans coerced?
Yes. Cells matching `^-?\d+(\.\d+)?$` become numbers; `true`/`false` become booleans. Everything else stays a string.
What if my CSV has no header row?
Add one. The first row is always used as the object keys.
Does it handle quoted fields with commas?
Yes — parsing uses PapaParse with full RFC 4180 support.