Back to Developer
CSV ⇄ JSON converter — delimiter & header auto

CSV ⇄ JSON converter — delimiter & header auto

Convert CSV to JSON or JSON to CSV in your browser. Pick the delimiter (comma / tab / semicolon), toggle the header row, and choose the JSON indent. Handles quoted fields with embedded commas, quotes, and newlines.

developerJSONconversion

How to use

Pick a direction (CSV → JSON or JSON → CSV), paste your data, then choose the delimiter (comma / tab / semicolon), whether the CSV has a header row, and the JSON indent (2 / 4) before pressing Run. The CSV parser understands quoted fields with embedded commas, line breaks, and escaped quotes (`""`). JSON → CSV emits the union of every object's keys as columns and automatically quotes values containing the delimiter or newlines. Copy the result or download it as .csv / .json.

FAQ

Is my input uploaded anywhere?
No. Conversion runs in your browser via local JavaScript — nothing leaves your device.
Can it handle commas or line breaks inside quoted fields?
Yes. Fields wrapped in double quotes (`"Sato, Hanako"`) may contain commas and newlines; escape a literal double quote inside a field as `""`.
Which delimiters are supported?
Comma (`,`), tab (`\t`), and semicolon (`;`). Pick the tab option for TSV input/output.
What if my CSV has no header?
Uncheck "Has header row". CSV → JSON then names the keys `column1`, `column2`, …. For JSON → CSV, unchecking it emits only data rows (no header line).
How are columns ordered when converting JSON → CSV?
We walk the array in order and record each key the first time it appears, from left to right. Keys missing from a given row become empty strings in that row.
Why merge CSV→JSON and JSON→CSV into one tool?
They are two directions of the same concept. A direction toggle lets you handle both in a single UI, and the delimiter / header options apply consistently to either direction.

Related tools