CSV ↔ JSON Converter

Convert CSV to a JSON array of objects, or JSON back to CSV, entirely in your browser.

Last updated

Converted output will appear here.
Copied

How to convert CSV to JSON

  1. Paste your CSV, or JSON to go the other way.
  2. Choose the delimiter (comma, semicolon or tab) and whether the first row is a header.
  3. Click CSV → JSON or JSON → CSV, then Copy result.

About this tool

CSV parsing follows the common convention: fields containing the delimiter, quotes, or line breaks are wrapped in double quotes, and a doubled quote ("") inside a quoted field represents a literal quote character. With "first row is a header" checked, each row becomes a JSON object keyed by the header names; unchecked, rows become plain arrays.

JSON → CSV expects an array of flat objects (or arrays) — nested objects and arrays inside a field are converted to their JSON string form rather than flattened, since there's no single standard way to represent nested data in CSV. Everything runs locally in your browser; nothing is uploaded.

Questions about CSV and JSON

How do I convert an Excel sheet to JSON?

Copy the cells from Excel or Google Sheets and paste them here with the Tab delimiter, or save the sheet as CSV and paste that.

What happens to the header row?

With First row is a header ticked, each row becomes an object using the headers as keys. Without it, each row becomes a plain list.

Does it handle commas inside values?

Yes. Values in double quotes can contain commas, line breaks and doubled quotes (""), following the usual CSV rules.

What happens to nested JSON when converting to CSV?

Nested objects and lists are written into the cell as JSON text, because CSV has no standard way to show nesting.

☕ Support toolcrate