CSV to JSON
Interactive StudioConvert CSV, TSV, and delimited tabular text into structured JSON with custom shape mapping (objects, 2D matrix, keyed dictionary, columnar), auto-type parsing, and interactive table preview. Instant feedback with zero server storage.
Loading tool…
About CSV to JSON
CSV (Comma-Separated Values) is the standard tabular data interchange format. This studio converts CSV and TSV data into flexible JSON structures (Array of Objects, 2D Matrix, Keyed Map, or Columnar lists), automatically detecting delimiters, parsing numeric and boolean primitives, and rendering a searchable data grid.
How to use CSV to JSON
- Paste CSV or TSV text, or upload a file.
- The delimiter is detected automatically and numbers and booleans are parsed into real types.
- Pick the output shape: array of objects, 2D matrix, keyed map or columns.
- Copy or download the JSON.
Worked examples
Input: name,age Ada,36 Lin,29
Result: [{"name":"Ada","age":36},{"name":"Lin","age":29}]
Input: city,note Paris,"cold, rainy"
Result: [{"city":"Paris","note":"cold, rainy"}] - the quoted comma stays inside the field.
Background
CSV looks simple but has rules: fields containing the delimiter, quotes or line breaks must be wrapped in double quotes, and a quote inside a quoted field is doubled. A parser that splits on commas breaks on these cases. This tool handles quoting properly.
CSV has no data types, so everything is text until parsed. Converting 007 into the number 7 loses leading zeros, which matters for IDs, postcodes and phone numbers.
Common mistakes
- Losing leading zeros in IDs or postcodes after numeric parsing.
- Missing the header row, so the first record becomes the keys.
- Mixing delimiters in a single file, such as semicolons from a European Excel export.
Frequently Asked Questions
Frequently Paired With
Fast, local-first developer micro-tools with zero tracking or latency.
JSON to CSV
Convert JSON arrays & objects to CSV with deep flattening.
JSON Formatter
Format, validate, and minify JSON with TypeScript & Zod export.
Hash Generator
Generate SHA-1/256/384/512 hashes of text.
Regex Tester
Test regular expressions with live highlighting, group captures & replacement.
