Skip to content

JSON to CSV Converter

Convert JSON to CSV and CSV back to JSON, in your browser.

Converted locally — your data is never uploaded.

Direction

How do you convert JSON to CSV?

JSON → CSV uses the union of object keys as the header row and quotes any value containing a comma, quote or newline. CSV → JSON uses the first row as keys and auto-detects numbers and true/false. For example, a JSON array of two people becomes a CSV with a name,age header and one row each. It runs in your browser.

Understanding your result

CSV is ideal for spreadsheets; JSON is ideal for APIs. This converts losslessly for flat data; nested values are stored as JSON text inside a cell.

Formula and method

JSON → CSV uses the union of object keys as the header row and quotes any value containing a comma, quote or newline. CSV → JSON uses the first row as keys and auto-detects numbers and true/false.

Worked example

A JSON array of two people becomes a CSV with a name,age header and one row each.

How to use this tool

  1. Choose the direction (JSON → CSV or CSV → JSON).
  2. Paste your data.
  3. Copy or download the converted output.

Common mistakes to avoid

  • Passing a single JSON object is fine, but JSON → CSV expects an array of objects for multiple rows.
  • CSV without a header row — the first row is treated as the keys.

About the JSON to CSV Converter

Convert a JSON array of objects into CSV, or turn CSV with a header row back into JSON. Everything runs in your browser.

Who should use this tool

Developers and analysts moving data between APIs, spreadsheets and databases.

Explore all Developer Tools tools

Frequently asked questions

Are commas inside values handled?

Yes. Values with commas, quotes or line breaks are quoted and escaped per the CSV standard.

Is my data uploaded?

No. Conversion happens entirely in your browser.

Share this tool

Free to use — copy the link, share it anywhere, or add the tool to your own website.

Embed this tool on your site (free)

Copy this code and paste it into any web page — it stays free and always up to date: