← Tools
Conversion

CSV to JSON

Paste CSV data and get a clean JSON array. Supports quoted fields, custom delimiters, and header rows.

CSV Input4 rows
JSON Output

Quoted Fields

Fields containing commas, newlines, or quotes must be wrapped in double quotes: "San Francisco, CA". A literal quote inside a quoted field is escaped as "". This follows RFC 4180. Read more: CSV Format: A Developer's Complete Guide.

Output Format

With header row on, each row becomes an object keyed by column name. With it off, rows are output as arrays of strings — useful for data without headers.

Delimiters

  • Comma — Standard CSV (RFC 4180)
  • Semicolon — Common in European locales where comma is the decimal separator
  • Pipe — Used in logs and some database exports
  • To explore and sort your CSV visually, use the CSV Viewer
  • To format the resulting JSON, use the JSON Formatter