CSV to JSON Converter
Convert CSV headers and rows into JSON objects in your browser. Supports quoted commas and empty fields; values stay strings.
Runs entirely in your browser. Your input is not uploaded, stored, or sent to a third party.
How CSV to JSON conversion works
Paste up to 250,000 characters, including a header and at least one data row, then choose Convert to JSON. The first row supplies object keys. Headers are trimmed and must be nonempty and unique. Each data row must have the same number of fields as the header. Every value stays a string, including numbers and words such as true; an empty field becomes an empty string. This converter uses commas as separators and does not automatically detect tabs or semicolons.
Quoted fields and errors
Wrap a field in double quotes to include commas or line breaks. Inside a quoted field, write a quote twice to represent one quote. An unclosed quote or unexpected text after a closing quote produces an error. A header without at least one data row is also rejected. Your CSV is processed in this browser and is not uploaded.
Example CSV
name,note Ada,"likes, commas"
Result
[
{
"name": "Ada",
"note": "likes, commas"
}
]