sangsen

CSV to JSON

Convert CSV into a pretty-printed JSON array of objects, keyed by the header row.

JSON output

Paste CSV into the input to convert it to JSON.

How it works

Paste CSV into the input box. It is parsed entirely in your browser — nothing is sent to a server — using the first row as object keys, producing a JSON array with one object per remaining row. Values are kept as strings; CSV has no native types, so nothing is silently guessed as a number or boolean.

Example

Header + two rows
name,role Alice,admin Bob,user[ { "name": "Alice", "role": "admin" }, { "name": "Bob", "role": "user" } ]

FAQ

Is my CSV uploaded anywhere?
No. Parsing happens entirely in your browser — nothing you paste ever leaves your machine.
Are numbers and booleans converted to their JSON types?
No — every value stays a JSON string exactly as written in the CSV, since CSV itself has no type information to convert from.
What delimiters are supported?
Comma, semicolon, and tab. Quoted fields can contain the delimiter, commas, or newlines.
What happens with a malformed row (wrong number of columns)?
You get a clear error naming the row number and the column-count mismatch, instead of a silently wrong result.