Skip to content
Cifrivo
Developer

Convert CSV to JSON

Parse CSV with quoted fields and comma, semicolon or tab separators, preview its rows and create a clean array of JSON objects.

Processed locallyYour files never leave your device.

Everything is processed locally in your browser.

How it works

  1. Paste CSV or upload a .csv file.
  2. Leave separator detection on or select the correct delimiter.
  3. Convert and review the first rows in the preview.
  4. Copy or download the formatted JSON array.

Practical example

A header name,city followed by Ada,London becomes [{"name":"Ada","city":"London"}]. Each header names one JSON property.

Formula and explanation

The first CSV record is treated as the header. Empty headings receive predictable column names, while duplicate headings are rejected because they would overwrite JSON properties.

The parser supports quoted commas, embedded line breaks and doubled quotation marks. It also reports rows whose field count differs from the header instead of discarding or shifting data.

CSV has no universal type information, so values remain strings. This avoids turning identifiers such as 00123 into a number or guessing that a date belongs to a particular timezone. Processing stays in the browser.

Frequently asked questions

Can the separator be detected automatically?

Yes. Cifrivo compares comma, semicolon and tab in the first non-empty record. You can override the choice.

Are numbers converted to JSON numbers?

No. CSV does not reliably describe types, so all cell values remain strings and leading zeros are preserved.

How are commas inside a field handled?

A field enclosed in double quotes may contain commas, line breaks and escaped double quotes.