CSV to JSON
Convert CSV or TSV to JSON locally. Choose comma, semicolon or tab, preserve leading zeros as strings, and copy or download your converted records.
Processed on your device. Your files and text are not uploaded.
Keep spreadsheet identifiers intact
Try two records with the IDs 0012 and 9007199254740993. Both must remain quoted strings in JSON. Exporting a spreadsheet that already rounded an ID cannot recover its original digits.
Choose comma, semicolon or tab input with a header row. Values remain strings; quoted commas, escaped quotes and multiline fields are supported.
How to use
Paste your input, choose an operation, then copy or download the result.
Practical workflow
Prepare an Excel table for JSON
- 1Use a single header row with unique, nonempty column names.
- 2Export the active sheet as CSV UTF-8 (comma delimited), open it locally or paste its contents, then choose the matching separator.
- 3Convert, inspect the records and download the JSON. Numbers and dates remain strings.
Before you use the result
Some regional settings export semicolons. Select Comma, Semicolon or Tab to match the file instead of replacing separators blindly inside quoted values.
CSV to JSON example: leading zeros and quoted commas
customer_id,name
0012,"Dev, Kumar"
Expected JSON:
[{"customer_id":"0012","name":"Dev, Kumar"}]Common questions and fixes
How do I preserve leading zeros?
Ensure the CSV contains 0012 before conversion. This converter keeps values as strings, producing "0012". It cannot restore zeros or digits already lost in a spreadsheet; keep identifiers as text before exporting.
What if my CSV uses semicolons or tabs?
Choose the matching separator. Do not replace every comma manually: a quoted name or address may contain a comma that belongs to the value.
Why are records or headers rejected?
Use unique, nonempty headers and the same field count in each record. Check the separator and close quoted fields. A comma inside a value needs enclosing double quotes; a literal quote inside that field is escaped as two double quotes.
Can I select an Excel workbook directly?
Direct XLSX import is not supported. Export the required sheet as UTF-8 CSV first. The converter accepts CSV/TSV text files up to 2 MB or pasted CSV text.
When to use CSV to JSON
Convert a comma-, semicolon- or tab-separated table into objects for an application or API. The first row supplies the keys, and every remaining row becomes an object.
Practical example
name,city followed by Asha,Mumbai produces [{"name":"Asha","city":"Mumbai"}]. A field containing a comma must be surrounded by double quotes.
Are numbers and dates converted automatically?
No. Values remain strings so leading zeros and date-like values are not silently changed. Headers must be unique and nonempty, and each record must have the same number of fields.
Related tools
Step-by-step guide
Keep leading zeros and long IDs when converting CSV to JSONReview the example, result checks and limitations before using your own inputs.