CSV to JSON

Convert a CSV table to a JSON array using the first row as column names.

The first row is the header. Values remain strings.

Your files are processed here, on your device

We do not send your file or text contents to a processing server. No account is needed and there is no daily operation quota. Individual tools have size limits to protect your device’s memory.

A connection is needed to load the site and its resources. Hosting may receive technical visit data. Favorites store only tool identifiers in this browser.

How we handle your data →

How to use this tool

  1. Paste the complete table including its header row.
  2. Choose its actual delimiter and convert to JSON.
  3. Check keys, record count and codes with leading zeros.

An example you can verify

Convert a table while preserving codes and values as text.

Example input

name,code
Ana,001

SettingsDelimiter: comma.

Expected result

[
  {
    "name": "Ana",
    "code": "001"
  }
]

The first row must have unique names. Code 001 retains its zeros; numeric types are not inferred.

CSV to JSON without losing leading zeros

Codes such as 001 remain strings. The first row supplies column names; quoted cells can contain commas and line breaks. Choose your table’s actual delimiter before converting.

Continue your task

Download the result or copy the text before opening another tool. Then load or paste it into the next step; content is not transferred automatically.

Review table data

Keep codes such as 001 intact when converting to JSON, inspect the data and export when ready.

  1. Convert CSV to JSONHere
  2. Inspect the JSON
  3. Export back to CSV

When opening the CSV in a spreadsheet, import code columns as text to preserve leading zeros.

Settings and limits

Paste CSV, choose the delimiter and convert. The first row must have unique, nonempty column names. Every cell remains text, including leading zeros. Escaped double quotes and line breaks within cells are supported. Maximum 10,000 rows, 200 columns and 1 million characters.

Frequently asked questions

Are numbers and dates converted automatically?

No. Cells remain strings to preserve codes, dates and leading zeros. Column names are preserved too.

Guides