CSV to JSON converter
Convert CSV tables into JSON records while preserving identifiers such as 0012 and long numbers as text. Check headers and records before exporting the complete result.
Convert CSV tables into JSON records while preserving identifiers such as 0012 and long numbers as text. Check headers and records before exporting the complete result.
Strings are preserved by default. Optional inference converts safe numbers and booleans, not dates or unsafe integers. Review identifiers before enabling it.
Maximum 2 MiB UTF-8 and 10000 records.
Add an input and run the conversion to see your result.
First 100 records and 50 columns only. Copy and download include the complete result.
Paste a table with a header or import a .csv, .tsv or .txt file. Quote cells that contain delimiters or line breaks.
Select the actual file delimiter. Leave inference off if every value must remain text.
Select Convert. Fix any indicated record, review the table and copy or download the complete JSON.
With inference off, 0012 stays a string. The CSV header becomes a property name on every object.
id,name 0012,Ana 0013,João
[
{ "id": "0012", "name": "Ana" },
{ "id": "0013", "name": "João" }
]They are rejected to prevent overwritten values. Each column needs a non-empty, unique header. Errors identify the affected logical record.
A quoted cell can contain delimiters and line breaks. Escape a quote inside it by doubling it. Every record must have as many cells as the header.
Convert CSV tables into JSON records while preserving identifiers such as 0012 and long numbers as text. Check headers and records before exporting the complete result.
With inference off, 0012 stays a string. The CSV header becomes a property name on every object.
Maximum 2 MiB UTF-8 and 10,000 records. Processed in this browser. No data is uploaded or saved.
Yes. By default every value is a string, so 0012 stays "0012". Do not enable inference for identifiers whose formatting matters.
Only when you enable the option. Safe numbers and booleans are converted; dates and integers outside the safe range remain text.
They are rejected to prevent overwritten values. Each column needs a non-empty, unique header. Errors identify the affected logical record.
A quoted cell can contain delimiters and line breaks. Escape a quote inside it by doubling it. Every record must have as many cells as the header.
Yes. The preview is limited to 100 records and 50 columns; copy and download include the complete result within the input limits.