CSV ↔ JSON Converter
Convert between CSV and JSON formats. Handles quoted fields, custom delimiters, and nested values. Output as array of objects or array of arrays.
Raw CSV text — rows separated by newlines, fields separated by a configurable delimiter (comma, semicolon, tab, pipe)
RFC 4180 parsing — handle double-quoted fields containing commas, newlines, and escaped quotes ("")
First row treated as column headers — used as object keys when outputting array of objects
Array of objects (keyed by headers) or array of arrays (raw rows) — selectable output format
Pretty-printed JSON ready to copy — preserves all field values including special characters
Array of objects — each object becomes one CSV row, keys become column headers
Union of all object keys across the array — ensures every field appears as a column
Nested objects and arrays are JSON-stringified into a single cell — no data loss
Fields containing commas, quotes, or newlines are wrapped in double quotes per RFC 4180
Header row followed by data rows — standard comma-separated format ready for spreadsheet import
Spec: RFC 4180 (CSV), ECMA-404 (JSON), RFC 8259 (JSON)