CSV to JSON Converter
Paste CSV or open a file to get structured JSON, with quoted fields and custom delimiters handled correctly.
How CSV to JSON works
Convert CSV data into clean JSON with a custom delimiter, header detection and pretty or compact output. Everything happens inside this page: the tool reads your input, runs the calculation or conversion locally, and hands the result back to you. Nothing is transmitted, because there is no backend to transmit it to.
That design choice is deliberate. Most free tool sites upload your files to a server, process them there, and quietly keep a copy. Toolcin cannot do that — the site is a set of static files. If your connection dropped the moment the page finished loading, every tool would still work.
Rows become objects
The first row is treated as the header, and each subsequent row becomes one JSON object keyed by those header names. That is the shape every API and every JavaScript library expects, which is why this direction is so common.
Comma, semicolon, tab and pipe are all supported as delimiters, because a European export may use semicolons and a copied spreadsheet cell block uses tabs.
What happens to numbers and quotes
Every value is written as a JSON string unless the header toggle is off, in which case rows become arrays of strings. Keeping them as strings is deliberate: a postcode like 01002 and a phone number like 03001234567 lose their leading zeros the moment they become numbers.
Quoted fields containing the delimiter survive intact, including embedded commas and doubled quotes. A row with fewer fields than the header gets empty strings rather than a shifted column.
| CSV | JSON |
|---|---|
| name,role\nAyesha,engineer | [{"name":"Ayesha","role":"engineer"}] |
| "Smith, J",dev | {"Smith, J":"dev"} → field with comma |
| 01002 | "01002" — string, keeps the zero |
The limits that matter
This is a client-side parser, so an enormous export will freeze the tab before it fails. For files above a few megabytes, do the conversion in a script.
RFC 4180 quoting is handled, but exotic exports — Excel's sep= line, utf-16 files, or rows spanning multiple lines inside quotes — are where hand-rolled parsers usually break. Check the first few objects before trusting a large conversion.
Good to know
- Works offline once loaded, including on flights and in locked-down networks.
- No file size limit beyond your device's own memory.
- Free to use, with no account and no usage counter.
- Results are produced locally, so they are not logged or shared with anyone.
Questions
Are quoted fields with commas supported?
Yes — standard CSV quoting, escaped quotes and embedded newlines are parsed correctly.
Can I use semicolons or tabs?
Yes, pick comma, semicolon, tab or pipe as the delimiter.
Does it handle quoted commas?
Yes. A field wrapped in quotes may contain the delimiter without splitting the row.
Can I convert back?
The JSON to CSV page does the reverse.
Keep going
More files tools
JSON to CSV
Convert an array of JSON objects into CSV, with quoted fields for commas, quotes and newlines.
Open toolXML Formatter
Format and validate XML with clear parse errors, using two-space, four-space or tab indentation.
Open toolJSON to YAML
Convert JSON into clean YAML with correct quoting, nesting and indentation.
Open toolMarkdown to HTML
Convert Markdown headings, emphasis, links, lists and blockquotes into clean HTML.
Open toolJSON to XML
Convert a JSON object into well-formed XML with nested elements and escaped values.
Open toolXML to JSON
Convert XML documents into JSON objects, with repeated tags turned into arrays.
Open tool