CSV ↔ JSON Converter
Convert CSV to JSON or JSON to CSV, handling quoted fields and commas correctly.
🔒 Runs entirely in your browser — nothing here is ever uploaded
About the CSV ↔ JSON Converter
Converts CSV to JSON or JSON to CSV in either direction, using a full RFC 4180-compliant CSV parser — handling quoted fields, embedded commas, escaped quotes, and embedded newlines correctly, unlike a naive comma-split.
- Choose a direction — CSV → JSON or JSON → CSV.
- Paste your CSV (first row = column headers) or JSON (an array of objects) into the input box.
- Read the converted result in the output box, and copy it with one click.
A CSV row like `"Smith, John","New York","Says ""hi"""` (a comma inside a quoted name and an escaped quote inside a quoted note) parses correctly into `{name: 'Smith, John', city: 'New York', note: 'Says "hi"'}` — a naive comma-split would incorrectly break this into extra fields.
Conversion happens entirely client-side — nothing is uploaded or sent to a server. JSON input must be an array of plain objects (one row per object) with matching keys; the JSON → CSV direction uses only the first object's keys as the header row, so all objects should share the same shape. Nested objects/arrays within a field are JSON-stringified into that CSV cell rather than flattened into multiple columns.
- • Switching direction carries your current output over as the new input when it converted cleanly, so you can round-trip data back and forth without losing your place.
- • If a field's value contains a comma, quote, or line break, the CSV output automatically wraps it in quotes and escapes any internal quotes — no need to do this manually.
- • For JSON → CSV, make sure every object in your array has the same keys — the header row is taken from the first object only, so a differently-shaped object later in the array will have mismatched columns.
- RFC 4180 — Common Format and MIME Type for Comma-Separated Values (CSV) Files — accessed 2026-08-30