EncryptCodecencryptcodec
Tools/Csv Json Converter

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.

All processing happens in your browser — nothing is sent to our servers
How it works
CSV ↔ JSON Conversion
CSV → JSON
01CSV input

Raw CSV text — rows separated by newlines, fields separated by a configurable delimiter (comma, semicolon, tab, pipe)

02Parse fields

RFC 4180 parsing — handle double-quoted fields containing commas, newlines, and escaped quotes ("")

03Header detection

First row treated as column headers — used as object keys when outputting array of objects

04Build JSON

Array of objects (keyed by headers) or array of arrays (raw rows) — selectable output format

05JSON output

Pretty-printed JSON ready to copy — preserves all field values including special characters

JSON → CSV
01JSON input

Array of objects — each object becomes one CSV row, keys become column headers

02Collect headers

Union of all object keys across the array — ensures every field appears as a column

03Flatten values

Nested objects and arrays are JSON-stringified into a single cell — no data loss

04Escape fields

Fields containing commas, quotes, or newlines are wrapped in double quotes per RFC 4180

05CSV output

Header row followed by data rows — standard comma-separated format ready for spreadsheet import

Spec: RFC 4180 (CSV), ECMA-404 (JSON), RFC 8259 (JSON)

Frequently Asked Questions