HomeToolsConversionCSV to JSON Converter

CSV to JSON Converter

Parse CSV format and convert it into structured JSON arrays or objects.

Conversion

CSV to JSON

CSV Input
JSON Output

What is CSV?

CSV (Comma-Separated Values) is a simple file format used to store tabular data, such as a spreadsheet or database. Files in the CSV format can be imported to and exported from most spreadsheet programs.

Features

  • Custom Delimiters: Convert CSV using commas, semicolons, tabs, or pipe characters.
  • Header Parsing: Automatically map keys to column headers if the first row contains headers.
  • Smart Types: Optionally parse numbers and booleans rather than importing everything as text.
  • Output Formats: Choose between a JSON array of objects or an array of arrays.
  • 100% Client-Side: All parsing runs locally in your browser. Your data is never uploaded to any server.

CSV Input Example

id,name,active,score
1,John Doe,true,84.5
2,Jane Smith,false,91.2

JSON Output Example

[
  {
    "id": 1,
    "name": "John Doe",
    "active": true,
    "score": 84.5
  },
  {
    "id": 2,
    "name": "Jane Smith",
    "active": false,
    "score": 91.2
  }
]

Contribute

Find a bug or want to suggest an improvement to this tool?