CSV to JSON
Turn CSV rows into clean JSON objects.
Use the CSV to JSON tool
What this csv to json does
CSV to JSON reads the first row as field names and turns each later row into an object. A real parser handles quoted fields, escaped quotes, commas inside values and line breaks inside quoted fields — the cases that break a naive split on commas.
The delimiter is detected from the header row, so tab-separated and semicolon-separated exports work too. Numbers and booleans are converted to JSON types by default; disable inference if every value should stay a string.
Why use it
- Move a spreadsheet export into an application or API fixture.
- Inspect data with a tool that understands JSON types.
- Normalise a CSV before importing it into a database.
How to use it
- 1Paste the CSV or open a .csv file.
- 2Check the detected delimiter and the type inference option.
- 3Copy the JSON or download it as a file.
Worked examples
Simple table
Input
name,age Ada,36 Linus,56
Output
[{"name":"Ada","age":36},{"name":"Linus","age":56}]Quoted comma
Input
city,note Pune,"Roads, bridges"
Output
[{"city":"Pune","note":"Roads, bridges"}]Common mistakes
- Assuming every value should be a string; IDs with leading zeros can lose them when converted to numbers.
- Forgetting that duplicate header names need renaming to avoid overwriting fields.
- Using a spreadsheet's display formatting instead of the raw values when exporting.
Frequently asked questions
What happens to duplicate column names?
Are empty cells null or empty strings?
Can it read semicolon-delimited files?
Related tools
All toolsJSON to CSV
Turn JSON arrays into spreadsheet-ready CSV.
Duplicate Line Remover
Remove repeated lines while keeping the original order.
JSON Formatter
Beautify or minify JSON, with precise error positions.
JSON Validator
Pinpoint JSON errors by line and column, instantly.