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

  1. Choose Convert: CSV to JSON, or JSON to CSV.
  2. Pick the Separator: comma, semicolon, tab or pipe. Many European and Indian Excel exports use semicolons.
  3. Tick First row is the column names if your CSV has a header row.
  4. Tick Turn numbers and true/false into real JSON values to get 42 instead of "42".
  5. 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 007 or phone numbers can be mangled if you convert numbers. Untick the option for those columns’ sake.
  • Tidy the output with JSON formatter.

All guides

↑ ↓ navigateEnter openEsc close