CSV to JSON and JSON to CSV Converter

Convert CSV data to JSON (or JSON to CSV) with configurable delimiter, header row option, and RFC 4180-style quoting. Runs in your browser.

Runs 100% in your browser — nothing is uploaded.Use this in a chain
JSON output

How to use

  1. 1
    Choose direction

    CSV → JSON or JSON → CSV. The Swap button flips it.

  2. 2
    Pick delimiter

    Comma is the default. Choose semicolon for European Excel exports, tab for TSV.

  3. 3
    Toggle header row

    On: first CSV row becomes object keys. Off: rows become arrays.

  4. 4
    Paste and copy

    Result updates live. Copy the output, or share the URL with your input inside.

Examples

CSV with header → array of objects
Input
name,role,active
Alex,admin,true
Jordan,editor,false
Output
[
  {"name":"Alex","role":"admin","active":"true"},
  {"name":"Jordan","role":"editor","active":"false"}
]
All values are strings — CSV has no types. Cast in your code if needed.
JSON → CSV
Input
[{"sku":"A1","qty":3},{"sku":"B2","qty":7}]
Output
sku,qty
A1,3
B2,7
Keys of the first object become the header row.
Quoted field with a comma inside
Input
title,author
"Once, Twice, Sold",Alex
Output
[{"title":"Once, Twice, Sold","author":"Alex"}]
RFC 4180 quoting: fields with commas are wrapped in double quotes. Internal quotes escape as "".

Frequently asked

How does it handle quoted values with commas inside?

The parser follows RFC 4180 conventions — fields with commas, quotes, or line breaks must be wrapped in double quotes, with internal quotes escaped by doubling them ("").

Semicolon or tab as delimiter?

Yes. Excel exports in some locales use semicolons; scientific tools often use tabs. Pick your delimiter from the dropdown.

What happens with nested objects when converting JSON to CSV?

Nested objects and arrays are serialized as their JSON string and placed into that cell. If you need flattened output, pre-process your JSON to a flat structure first.

Related tools