CSV to JSON converter

Turn a CSV into JSON that an API, a script or a database import can read. By default every row becomes an object keyed by the column names. You can also output plain arrays or newline-delimited JSON, and convert numbers and true/false into real JSON values.

CSV to JSON tool

Your file stays in this browser tab. It is not uploaded by SheetShift.

CSV file

Drag a file here, or

Options

How to use the CSV to JSON

  1. Load a CSV file or paste CSV text.
  2. Keep "First row contains column names" ticked if the first line is a header. Those names become the JSON keys.
  3. Choose the output shape. Array of objects suits most APIs. JSON Lines suits log tools and large imports.
  4. Press Convert, then copy the JSON or download it as a file.

Example: input and output

This example was produced by the same code the tool runs with default settings. You can download the sample file(s): products.csv.

Input
id,name,price,in_stock
1,Desk lamp,24.99,true
2,USB hub,18,false
3,"Monitor stand, oak",49.5,true
Output
[
  {
    "id": 1,
    "name": "Desk lamp",
    "price": 24.99,
    "in_stock": true
  },
  {
    "id": 2,
    "name": "USB hub",
    "price": 18,
    "in_stock": false
  },
  {
    "id": 3,
    "name": "Monitor stand, oak",
    "price": 49.5,
    "in_stock": true
  }
]

Result summary: Converted 3 records.

Supported formats

Input: CSV, TSV, TXT. Output: .json or .ndjson (UTF-8).

Limitations

  • Type conversion treats only plain numbers and true/false as non-text. Values like 007 or 1e3 that look numeric become numbers; turn type conversion off to keep every value as text.
  • Duplicate column names get a numeric suffix (name, name_2) because JSON keys must be unique.
  • Nested JSON cannot be rebuilt from flat CSV columns.

When this helps

Seed a database or API

A product list kept in a spreadsheet becomes a JSON file you can post to a REST endpoint or import into a document store.

Feed a front-end prototype

Convert a CSV of sample data into JSON to load into a chart or a table component.

Frequently asked questions

Why are my numbers in quotes?

Tick "Convert numbers and true/false to JSON types". With that option off, every value stays a string.

What is JSON Lines?

One complete JSON object per line, with no surrounding array. Many log systems and big-data tools read it line by line.

Is there a size limit?

There is no fixed limit. The practical limit is your browser memory. Hundreds of thousands of rows are usually fine on a laptop.

Related tools

Category: Data Conversion