CSV Column to JSON Array Converter

Get a JSON array of IDs, names or other values from one column in a spreadsheet export.

Paste or load a CSV file, then pick a column. For a TSV file, choose Tab separated.
UTF-8 text files up to 10 MB. For spreadsheets, save a copy as CSV or TSV first.

Conversion requires JavaScript.

Transformations (2 enabled)

ArrayCat cleans up and encodes values before grouping duplicates or sorting. It escapes the values for the output format last.

Cleanup
Encoding
Duplicates and ordering
Counting two copies of apple gives 2:apple.
Saved presets

Presets keep your formats and cleanup settings in this browser.

Delete or overwrite the preset to remove any text saved with it.

Worked example

CSV input
sku,product
001,"Pencil, blue"
042
JSON from the SKU column
["001", "042"]

Check First row contains column names when your file has headers. In this example, pick Column 1: sku to get the product codes.

Pick Column 2: product and turn off Remove empty elements to keep a blank entry for the second row. The output is ["Pencil, blue", ""]. The quotes in the CSV keep the comma inside the name.

Use the CSV to JSON converter to include every field from each row.