CSV to JSON Converter
Paste CSV, get clean JSON — quoted commas and escaped quotes handled correctly.
A free online CSV to JSON converter that parses CSV the way a spreadsheet does — quoted fields, commas inside quotes, escaped double quotes, and newlines inside a cell all come through intact. No signup, runs entirely in your browser.
First row is header
When off, each row becomes a plain array of values instead of an object.
Delimiter
Output style
"Objects" keys each row by the header. "Arrays" keeps each row as a plain list of values.
Pretty-print JSON
How to convert CSV to JSON
Paste CSV into the input box above. With First row is header turned on (the default), the first row's values become the JSON keys and every following row becomes an object — name,age with a row Alice,30 becomes {"name":"Alice","age":"30"}. Turn that option off and every row, including the first, becomes a plain array of values instead, which is useful when the CSV has no header row at all.
Quoted commas and escaped quotes
Real-world CSV files are not just comma-split lines. A field that itself contains a comma — like an address "123 Main St, Apt 4" — has to be wrapped in double quotes so the comma inside it isn't mistaken for a column separator. A double quote inside a quoted field is written as two double quotes in a row (""), which this converter unescapes back to a single literal " character. Getting this wrong is the most common bug in hand-rolled CSV parsers that just split on commas.
Newlines inside a cell
A quoted field can also contain a literal newline — a multi-line address or a note field, for example — and that newline does not end the row. This converter tracks whether it's currently inside a quoted field and only treats an unquoted newline as the end of a row, so multi-line cell values come through as a single JSON string with the line break preserved.
Frequently asked questions
Related tools: JSON to CSV Converter · JSON Formatter · Diff Checker