Use the first CSV row as JSON keys
Paste comma-separated data with a header row and one record per line. For example, name,age followed by Alice,30 on the next line becomes [{"name":"Alice","age":"30"}], displayed with indentation. The age stays a string, rather than becoming a number.
Use unique header names. A missing cell becomes an empty string, and values beyond the header count are ignored. Empty data lines are skipped. This tool expects commas as separators and does not automatically detect tabs or semicolons.
Check quoted fields and line breaks
The parser handles commas inside quoted fields and doubled double quotes. For example, "Smith, Alice" is one field, and "She said ""hello""" contains literal quote characters. It splits records on line breaks, so quoted fields that span multiple lines are not supported.
Conversion is not a strict CSV validation report. Check the resulting fields against your source before importing them. Use the JSON to CSV converter for the reverse direction, or the JSON formatter to inspect the resulting structure.
Common questions
- Will numbers and booleans keep their types?
- All CSV values become JSON strings, including numeric text, true, and false. Convert the fields to the required types in your application.
- Does this handle multiline quoted CSV fields?
- No. It expects one record per physical line. Commas and doubled quotes within a single-line quoted field are supported.