CSV to JSON
CSV to JSON
Paste CSV to convert it to JSON. Quoted fields with commas and line breaks are handled correctly.
The CSV to JSON Converter turns spreadsheet-style data into JSON that code, APIs, and modern tools can consume. CSV is how the business world shares tables, but developers need structured objects. Pasting a table here gives you a clean JSON array in seconds, without writing a throwaway script.
The built-in parser is a real CSV parser, not a naive split on commas. It correctly handles quoted fields that contain commas, double quotes written twice, and even line breaks inside a quoted field, following the rules that Excel and other spreadsheet programs use when they export CSV.
With the header option on, the first row becomes the keys of each object, producing an array of tidy records. Turn it off and you get a plain array of row arrays, which suits headerless data. All values stay strings, exactly as CSV stores them. The conversion happens fully in your browser; nothing is uploaded.
How to use
- Keep the header box ticked if your first row names the columns.
- Paste your CSV into the box.
- Click Convert to JSON.
- Copy the result or download it as a .json file.
Frequently asked questions
Are numbers converted to JSON numbers?
No. CSV has no types, so every value stays a string. That is the safe choice; convert numbers in your code where you know which columns should be numeric.
Does it handle quoted commas and newlines?
Yes. The parser follows standard CSV quoting: fields in double quotes may contain commas and line breaks, and a doubled quote inside a field means one literal quote.
What if rows have different lengths?
Missing trailing values become empty strings when the header option is on, so every object has the same keys and the output stays predictable.
Is my data sent to a server?
Never. Everything runs locally in your browser.