CSV to JSON Converter

Convert CSV to JSON in your browser. Header row, quoted fields, custom delimiters, and optional number and boolean typing. Free and private.

Independently verified for accuracy

Calculator by Toolsloft ↗

Paste CSV and get clean JSON. The first row can be treated as the header, so each following row becomes an object keyed by column name. It handles quoted fields, commas inside quotes, and other delimiters like semicolons or tabs. Everything runs in your browser.

How this is calculated

The CSV is parsed by the RFC 4180 rules: fields may be wrapped in double quotes, a doubled quote inside a quoted field is a literal quote, and a quoted field can contain the delimiter or line breaks. With type inference on, plain numbers become JSON numbers, the words true and false become booleans, and empty cells become null. The result is pretty-printed with two-space indentation.

How to use

  1. Paste your CSV data into the input box.
  2. Choose the delimiter and whether the first row is a header.
  3. Copy the formatted JSON from the output.

Examples

  • People CSV: name,age,active → array of typed objects
  • Quoted field: "Widget, deluxe",9.99 → {"product":"Widget, deluxe","price":9.99}

FAQ

How are quoted fields handled?
A field wrapped in double quotes can contain the delimiter, line breaks, and doubled quotes. So "Widget, deluxe" stays one value even with a comma inside, following the RFC 4180 CSV rules.
Can I keep everything as text?
Yes. Turn off type inference and every value stays a string, including numbers like "007" or "1.50" that you do not want reinterpreted.
What if there is no header row?
Turn off the header option and each column is named column1, column2, and so on, with every row treated as data.

Embed this calculator

Add this free calculator to your own site. Copy the code and paste it where you want it to appear.