> codebench_TOOL: HomeLOCAL-ONLY⌘K Switch

CSV <-> JSON

Tool guide

Convert between CSV and JSON formats

Input: This tool processes input in your browser. Check in Network (opens in a new tab)

Direction:
Delimiter:
CSV Input
JSON Output
Press ⌘Enter to convert

Convert CSV to JSON arrays or JSON arrays to CSV with automatic delimiter detection, type inference (numbers, booleans, null), and configurable header rows. Supports comma, tab, semicolon, and pipe delimiters. Handles quoted fields with embedded commas and newlines. 100% client-side.

How to use it

  1. Select CSV → JSON and Comma (,), then leave Header checked so the first row becomes property names.
  2. Turn Type Inference off before pasting these inventory labels into CSV Input. Click Convert.
  3. Check both properties in JSON Output. For comparison, turn Type Inference on and convert again: bin becomes the number 7, which is wrong if 007 is an identifier.

Worked example

Example input
bin,description
007,"Pens, blue"
Example output
[
  {
    "bin": "007",
    "description": "Pens, blue"
  }
]

The comma inside the quotes belongs to description and does not create a third column. The quotes around 007 in JSON mean the identifier stayed a string.

What to watch for

Quoting an identifier in the CSV field does not prevent type inference. This converter removes CSV quoting before deciding whether the field looks numeric.

Frequently asked question

Will this repair rows with missing columns?
No. A row whose field count differs from the header generates a warning in Logs. Missing values are filled with empty strings when inference is off, so inspect those warnings before using the output.

Browse Convert tools

Further reading

> codebench $Ctrl+Enter Run