Convert CSV to JSONC

Turn CSV files into JSONC. An array with one object per row, keyed by the header row.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop CSV files on the dialor turn it to pick what to do

A JSONC array with one object per row.Each row of the CSV becomes an object, keyed by the header row.

  1. What you get

    A JSONC file that holds an array. Each row is one object, and the keys come from the header row.

    Numbers, lowercase true and false, and empty cells are typed. Values with a leading zero stay text.

  2. How it is written

    The output is plain JSON, which every JSONC reader accepts. No comments are added.

  3. Choosing the delimiter

    When Delimiter is left out, it is guessed from the rows. Set Delimiter to comma, semicolon, tab or pipe if you know which character separates the fields. Spreadsheets in many European locales use semicolons.

CSV and JSONC.What each format is, and the options this conversion takes.

  1. 01 · delimiter

    Delimiter

    The character between fields. It is guessed from the rows when left out. Spreadsheets in many European locales use semicolons.

    • comma A comma.
    • semicolon A semicolon.
    • tab A tab.
    • pipe A vertical bar.
    comma · semicolon · tab · pipe

The formats

From · CSV

CSV

Rows of comma-separated values. The plainest way to move a table between programs.

Extensions
.csv
MIME type
text/csv
Kind
Text and data
To · JSONC

JSON with Comments

JSON that allows comments, as in editor and TypeScript configuration files.

Extensions
.jsonc
MIME type
text/x-jsonc
Kind
Text and data

In your code.The same CSV to JSONC conversion through the API, for your app or your agent.

terminal
$ cv convert sheet.csv sheet.jsonc
$ cv convert sheet.csv sheet.jsonc

Questions.What people ask about CSV to JSONC.

01OF 04

No. It is written as plain JSON, and no comments are added. Any JSONC reader accepts it.

Yes. Numbers are typed. A value with a leading zero stays text.

Set Delimiter to semicolon. If you leave it out, the delimiter is guessed from the rows.

The header row. Each row becomes one object keyed by those headers.

More conversions.Other ways in and out of CSV and JSONC.