CSV to JSON

โ€“records
โ€“columns
โ€“delimiter
โ€“numeric cells

  
CSV lineJSON you get
"Turner, Ted",writer,45{"name":"Turner, Ted","role":"writer","age":45}
Grace,"New York, NY",1906{"name":"Grace","role":"New York, NY","age":1906}
Alan,,1912{"name":"Alan","role":"","age":1912}
The rows above cover the everyday surprises: quoted cells hide commas from the splitter, and an empty cell becomes an empty string - never null, because CSV has no way to say the difference between empty and missing. A literal quote mark inside a cell is encoded by doubling it (two quote characters side by side); if your source escapes with backslashes instead, pre-clean it - that dialect is not standard CSV. That last word is a citation, not slang: RFC 4180, the IETF common CSV format, is the document the doubling rule and the no-null ambiguity come from - this page follows it cell for cell.
Quotes handled: commas inside quoted cells stay put. Numeric cells become JSON numbers. Runs locally.

CSV is what spreadsheets export and JSON is what APIs and code want, and the conversion breaks on the same details every time: commas hiding inside quoted cells, semicolon delimiters from European exports, and numbers that arrive as strings. This converter handles all three - quoted values are parsed properly, the delimiter is sniffed from the header row, numeric cells are typed as JSON numbers - and shows the result as clean, copyable JSON.

The first row becomes object keys, so 'name,role' headers yield {"name":..., "role":...} records. Everything runs locally in your browser: customer exports and spreadsheet data never leave the page. Your last CSV is remembered for iteration, and the tool sits between the JSON formatter and Base64 decoder in the data-tools corner of the site.

How to use

  1. Paste CSV with headers in the first row - commas, semicolons or tabs.
  2. Read the JSON array - records, columns, delimiter and numeric-cell count update live.
  3. Copy the output, or tweak the CSV and watch it reconvert.

Frequently asked questions

How are commas inside values handled?

Properly - cells wrapped in double quotes keep their commas, and doubled quotes inside quoted cells become literal quotes (the CSV escaping rule). Only unquoted commas split cells, which is exactly how standards-compliant CSV parsers behave.

How do numbers become JSON numbers?

Cells matching a numeric pattern (optional sign, digits, decimal, scientific notation) are emitted unquoted and become real JSON numbers; everything else stays a string. Need '123' as a string? Quote it in the CSV or fix it after - the note line counts what was typed.

Does it detect semicolon or tab delimiters?

Yes - the header row is scanned for commas, semicolons and tabs, and the most frequent wins. European Excel exports (semicolon CSVs) and TSVs paste straight in; the delimiter stat shows what was detected.

Is my data uploaded anywhere?

No - parsing happens in your browser with zero network calls, the same guarantee as every text tool here. For customer lists and financial exports, local-only is not a feature, it is the requirement.

Are blank rows and Windows line endings okay?

Yes - carriage returns and newlines both split rows, and fully blank lines are dropped before parsing, so a CSV exported from Windows Excel pastes in clean. One limit to know: a newline inside a quoted cell is read as a row break, so keep multi-line cells on one line or swap the break for a space before converting.

What if there is only a header row?

The converter holds output until data arrives - a lone header line shows the need-a-header-row-plus-data hint, because an empty JSON array usually means half the paste is missing rather than a genuinely empty table.

Related tools