JSON to CSV converter

Convert structured data between JSON and CSV without leaving your browser.

Your data is processed only in your browser. Nothing is uploaded.

How to use this converter

  1. Choose a direction with the buttons at the top: JSON to CSV, or CSV to JSON.
  2. Paste your data into the input box.
  3. Click Convert. Copy or download the result.

What it does under the hood

For JSON to CSV, the tool reads your array of objects, collects every key it finds to build the header row, then writes one line per object. Values containing a comma, quote, or line break are wrapped in quotes and escaped, which is the standard CSV rule.

For CSV to JSON, the first row is treated as the column names. Each following row becomes an object. Values that look like numbers or true and false are converted to real numbers and booleans so the JSON is clean to work with.

JSON to CSV: headers = unique keys across all objects CSV to JSON: object[header] = parsed value for that column

A real example

Say you export a small contact list from a spreadsheet as CSV but your API expects JSON. Paste the CSV, switch to CSV to JSON, convert, and you have a ready-to-send array in seconds, without installing anything or pasting customer data into an unknown website.

Common questions

My JSON will not convert. What is wrong?

The most common cause is invalid JSON, such as a trailing comma or single quotes instead of double quotes. The error message shows what the parser tripped on. A single object also works; the tool wraps it in an array for you.

How are commas inside values handled?

Any value that contains a comma, a double quote, or a line break is wrapped in double quotes, and inner quotes are doubled. That keeps the CSV valid when you open it in a spreadsheet.

Is my data sent anywhere?

No. The conversion runs in your browser with JavaScript. Closing the tab clears everything.