How to convert CSV to JSON and JSON to CSV online
CSV is what spreadsheets export; JSON is what APIs use. CSV and JSON converter goes both ways.
Steps
- Choose Convert: CSV to JSON, or JSON to CSV.
- Pick the Separator: comma, semicolon, tab or pipe. Many European and Indian Excel exports use semicolons.
- Tick First row is the column names if your CSV has a header row.
- Tick Turn numbers and true/false into real JSON values to get
42instead of"42". - Paste your data and copy the result.
Example
name,age
Asha,30
Ravi,25
becomes an array of objects: [{"name":"Asha","age":30},{"name":"Ravi","age":25}].
Tips
- Quoted fields with commas or line breaks inside are handled.
- For JSON to CSV, use an array of objects whose keys become the columns.
- Leading zeros such as
007or phone numbers can be mangled if you convert numbers. Untick the option for those columns’ sake. - Tidy the output with JSON formatter.