CSV to JSON
Paste CSV or TSV to get JSON. Use the first row as keys, or output arrays. Quoted values containing commas, quotes and line breaks are handled correctly.
JSON output
How to convert CSV to JSON
- Paste your CSV data or open a .csv file from your device.
- Tell the tool whether the first row contains column names, and pick the delimiter.
- Optionally turn numbers and booleans into JSON types.
- Copy the JSON or download it as a file.
Frequently asked questions
What happens with malformed CSV?
The converter still produces output where it can and lists each problem, such as a missing closing quote or a row with the wrong number of fields, with its row number.
Can I convert TSV or semicolon-separated files?
Yes. Choose tab, semicolon or pipe as the delimiter, or leave it on Auto-detect.
Related tools
- JSON to CSVTurn a JSON array of objects into a CSV file.
- JSON FormatterPretty-print or minify JSON with clear error locations.
- YAML FormatterValidate YAML and convert between YAML and JSON.
More in Code & Data.