CSV to JSON Converter

Convert CSV data into JSON. The first row is used as the keys. It handles quoted values, commas inside quotes, line breaks inside cells, and comma, semicolon, tab or pipe separators.

How to use the CSV to JSON Converter

  1. Paste your CSV into the box, or click "Load example". You can copy cells straight from a spreadsheet, which pastes as tab-separated data.
  2. The separator is detected automatically. Change it, or switch to an array of arrays, if you need to.
  3. Copy the JSON or download it as a .json file.

Example

This CSV:

name,age,city,active
Alice,30,"New York, NY",true
Bob,25,Chicago,false

becomes this JSON:

[
  {
    "name": "Alice",
    "age": 30,
    "city": "New York, NY",
    "active": true
  },
  {
    "name": "Bob",
    "age": 25,
    "city": "Chicago",
    "active": false
  }
]

How the conversion works

Tips for clean CSV

Common uses for CSV to JSON

Frequently asked questions

How do I convert CSV to JSON?

Paste your CSV into the converter. The first row becomes the keys, and each following row becomes an object in a JSON array. Then copy the result or download it as a file.

Does it handle quoted values with commas?

Yes. Values in double quotes can contain commas, line breaks and escaped quotes, so "New York, NY" stays as one value.

What if my CSV uses semicolons or tabs?

The separator is detected automatically from the first line. You can also choose comma, semicolon, tab or pipe yourself. This also lets you convert TSV data.

Why are some numbers kept as text?

Values like 007, phone numbers with a leading zero, and numbers with more than 15 digits would lose information as JSON numbers, so they stay as text. Note that 10.50 becomes 10.5 when converted. Untick "Convert numbers and true/false" to keep every value as text.

How large a file can I convert?

The conversion runs in your browser, so the limit depends on your device. Files with many thousands of rows usually work well. For very large files, split the CSV into parts.

Is my data uploaded or stored?

No. The converter is free and everything runs in your browser. Your data is never uploaded to a server or stored.

More free tools

JSON Formatter & Validator

Format, beautify and validate JSON with clear error messages.

JSON Minifier

Minify JSON by removing all spaces and line breaks.

Remove Duplicate Lines

Paste a list and remove duplicate lines while keeping the original order.

Sort Lines Alphabetically

Sort a list of lines from A to Z or Z to A.

Regex Tester

Test regular expressions against your text and see all matches.

Base64 Encoder & Decoder

Encode text to Base64 or decode Base64 back to readable text.