100% Client-Side WASMZero Remote NetworkVerified Spec

CSV to JSON

Interactive Studio

Convert 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

  1. Paste CSV or TSV text, or upload a file.
  2. The delimiter is detected automatically and numbers and booleans are parsed into real types.
  3. Pick the output shape: array of objects, 2D matrix, keyed map or columns.
  4. 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

Are quoted fields with commas supported?
Yes, the parser is fully RFC-4180 compliant and safely preserves commas and newlines enclosed in quotation marks.
Can I convert numbers to real JavaScript numbers instead of strings?
Yes, enable 'Parse numbers & booleans' to automatically convert numeric and true/false values into native JSON primitives.
What output structures are available?
You can export as an Array of Objects, a 2D Array Matrix, a Keyed Map (keyed by the first column), or Columnar Arrays.

Fast, local-first developer micro-tools with zero tracking or latency.

Browse All Tools
Local-First Architecture: Toolium parses payloads exclusively in browser memory. Zero network telemetry.
⌘C Copy⌘K Palette