Neatbo.

CSV to JSON

Convert CSV or TSV to a JSON array of objects while keeping every cell as a string.

Browser-local processingInputCSVOutputJSONUp to 10 MiB per file · File limit: 1
  1. 1Add input
  2. 2Adjust settings
  3. 3Get your result

Tool input and files are processed in this browser without being uploaded.

Your input
Delimited text source
0 characters · 0 bytes
Options

Complete the required options first. You can keep the defaults for the rest.

Choose the separator used between columns: comma, tab, semicolon or vertical bar. It is not detected automatically. A separator inside a quoted field stays in that cell.

Use the first row as JSON keys. Headers must be nonempty and unique exactly as written. Turn this off to keep the first row as data and generate column_1, column_2 and so on.

Inputs are kept temporarily in this tab when switching tools. Refreshing or closing clears them; large results may need to be regenerated.⌘ / Ctrl + Enter to run

Preparing the tool…

Before you start

Choose the table’s delimiter and whether the first row contains headers. Quoted fields can contain delimiters and line breaks; doubled quotation marks become literal quotes. Every cell becomes a JSON string, so leading zeros and long numeric identifiers keep their characters.

How to use this tool

  1. Select “Paste text” to enter your table in “CSV input”, or select “Choose CSV file” and choose one local CSV, TSV or TXT file.
  2. Set “Delimiter” and “First row contains headers”, then select “Convert to JSON”. For the example shown here, use Comma with headers checked; “Try an example” keeps your current options.
  3. Check the JSON keys, record count and a few values against your table. Use “Copy result” for the complete JSON or “Download” to save table.json.

Supported inputs and limits

Use one file up to 10 MiB or paste up to 1 MiB of UTF-8 text. The table may contain up to 200,000 cells, including headers and empty cells.

Files must use UTF-8. Filenames, including the extension, are limited to 512 UTF-16 code units; most letters count as one and some emoji as two.

The preview shows up to 12,000 Unicode code points. Copy result and Download include the complete JSON.

Worked example

Example input

id,name
001,中文
9007199254740993,😀
Example options
{}

Example output

[
  {
    "id": "001",
    "name": "中文"
  },
  {
    "id": "9007199254740993",
    "name": "😀"
  }
]

When something does not work

Check the selected delimiter, balanced quotation marks and equal record widths. If headers are enabled, check for empty or repeated names. Re-export unreadable files as UTF-8, run the conversion again and compare the new JSON with your source.

Frequently asked questions

Are my files uploaded?

No. Conversion runs in your browser. Switching tools may retain inputs and results temporarily in the same tab, but large results may need to be generated again. Refreshing or closing the tab clears this workspace; download anything you want to keep.

What should I check in this result?

If every record has just one unexpected key, check the delimiter. Compare the number of JSON objects with your data rows, check header names and quoted multiline cells, and confirm that leading zeros and long IDs are still present. When headers are enabled, the header row is not a data record.

How are headers and cell types handled?

With “First row contains headers” checked, the first row supplies the JSON keys. Each header must be nonempty and unique as written; spaces and letter case are kept. Uncheck it to keep the first row as data and use column_1, column_2 and so on as keys. All cell values, including empty cells, are strings. A valid file containing only headers produces [].

Documentation & further reading

Related tools