CSV to JSON
Convert CSV or TSV to a JSON array of objects while keeping every cell as a string.
- 1Add input
- 2Adjust settings
- 3Get your result
Tool input and files are processed in this browser without being uploaded.
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
- Select “Paste text” to enter your table in “CSV input”, or select “Choose CSV file” and choose one local CSV, TSV or TXT file.
- 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.
- 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
JSON to CSV
Turn an array of JSON records into a CSV table.
View CSV
A clear look at your data, no spreadsheet app needed.
Clean CSV
Remove duplicate rows by the columns you choose, with optional empty-row removal.
JSON to YAML
Convert JSON to YAML with quoted strings and unchanged number tokens.