← All tools

CSV / JSON Converter

Convert between CSV and JSON. Parse CSV with proper RFC 4180 quoting (fields wrapped in double quotes, embedded commas, newlines, and doubled "" quotes) or turn JSON arrays into CSV with automatic quoting. Choose delimiter, header handling, and whitespace trimming. Everything runs locally in your browser.

CSV input

JSON output

CSV (RFC 4180) splits records on newlines and fields on the delimiter, but a field wrapped in double quotes may contain the delimiter, newlines, and doubled quotes ("") as an escaped quote. This tool parses that state machine exactly and, in the reverse direction, automatically quotes any field that contains the delimiter, a quote, or a newline (escaping quotes as ""). CSV → JSON treats the first row as object keys (toggle off for arrays of arrays); JSON → CSV emits a header row from object keys (first-seen order) and stringifies nested values as JSON. Pairs with the JSON Formatter and JSON to TypeScript tools. Everything runs locally — nothing leaves your browser.