CSV to JSON Converter

Convert CSV to JSON or JSON back to CSV — paste your data and get an instant, accurate result.

How to Convert CSV to JSON (and Back)

  1. Choose "CSV → JSON" or "JSON → CSV" with the pill toggle at the top of the tool.
  2. Paste your CSV or JSON data into the input box.
  3. In CSV → JSON mode, check or uncheck "First row is a header" depending on whether your data includes column names.
  4. Click "Convert", then copy the result with "Copy Result".

Frequently Asked Questions

How does it handle commas inside quoted CSV fields?

The parser tracks whether it is currently inside a quoted field and only treats a comma as a column delimiter when it's outside quotes; a doubled quote ("") inside a quoted field is unescaped to a single literal quote, matching standard CSV quoting rules.

What happens if I uncheck "First row is a header"?

Every row, including the first, is treated as data, and the resulting JSON keys are auto-named col1, col2, col3, and so on instead of using your actual header text.

When converting JSON to CSV, where do the column headers come from?

The tool takes the keys of the first object in your JSON array and uses them as the CSV header row. If later objects have different or missing keys, only the ones matching the first object's keys line up correctly, so keep your objects' shapes consistent.

Will values containing commas or quotes come out broken in the CSV output?

No — any field containing a comma, a quote character, or a newline is automatically wrapped in double quotes, with internal quotes doubled, so it round-trips correctly.

Does JSON to CSV work if my JSON is a single object instead of an array?

Yes — a single JSON object is automatically wrapped into a one-item array before conversion, producing a header row plus one data row.