CSV ⇄ JSON Converter

Turn spreadsheets into clean JSON — and JSON back into CSV — in one click.

🔒 Runs entirely in your browser — nothing is uploaded

Waiting for input…

Rows / records
0
Columns / keys
0
Output size

How it works

Convert both ways, without your data ever leaving this page.

1

Paste your data

Drop in CSV or JSON. Set the delimiter and say whether the first row is a header.

2

Convert instantly

We parse it live — including quoted fields that contain commas, quotes or line breaks.

3

Copy or download

Grab the result with one click, or save it as a .json or .csv file.

CSV to JSON, and JSON to CSV

This tool converts CSV (comma-separated values) into readable, pretty-printed JSON, and converts JSON arrays of objects back into a clean CSV file. In CSV → JSON mode with the header toggle on, each column heading becomes a key and every following row becomes an object. Turn the header off to get a plain array of arrays instead.

In JSON → CSV mode, paste an array of objects (or a single object) and the tool collects every key across your records into column headers, then fills in each row — leaving blanks where a record is missing a field. Values that contain the delimiter, a quote or a newline are automatically wrapped in quotes so the CSV stays valid in Excel, Google Sheets and Numbers.

Handles the tricky bits

Real-world CSV is messy. The parser correctly reads quoted fields like "Smith, John", escaped quotes ("") inside a field, and values that span multiple lines. Pick a comma, semicolon, tab or pipe delimiter to match your source file.

Is my data private?

Completely. Every conversion happens locally in your browser using plain JavaScript. Nothing is sent to a server, so even large or sensitive files never leave your device.

Frequently Asked Questions

Can it convert both CSV to JSON and JSON to CSV?
Yes. Use the toggle at the top to switch direction — CSV → JSON turns a spreadsheet into readable JSON, and JSON → CSV turns an array of records back into a clean CSV file.
Does it handle commas and quotes inside a field?
It does. Quoted values that contain commas, quote marks or line breaks are read correctly, and when writing CSV those values are automatically wrapped in quotes so the file stays valid in Excel, Google Sheets and Numbers.
Which delimiters are supported?
Comma, semicolon, tab or pipe. Pick the one that matches your source file from the delimiter menu.
What if my first row isn't a header?
Turn off the First row is a header option. You'll then get a plain list of rows instead of named fields.
Can I copy or download the result?
Yes — copy it with one click, or download it as a .json or .csv file.
Is my data uploaded anywhere?
No. Every conversion happens in your browser on your own device, so even large or sensitive files never leave your computer.