PocketPlay
中文

CSV ⇄ JSON

Convert CSV or TSV to JSON and JSON back to CSV, with delimiter detection, nested flattening and a table preview.

🔒 Runs in your browser — files never leave your deviceFree · No sign-up

CSV input

Drop a .csv / .tsv / .json file, or click to choose

JSON output

Table preview

The preview shows up once there are rows to display.

How to use the CSV ⇄ JSON converter

  1. Pick a direction, then paste your data or drop a .csv, .tsv or .json file — the delimiter is detected for you.
  2. Choose whether the first row is a header and whether you want an array of objects or an array of arrays.
  3. Check the table preview underneath, then copy the result or download data.json / data.csv.

FAQ

Does it handle commas and line breaks inside a field?

Yes. Quoted fields are parsed properly, so "Ng, Ada" stays one value and a quoted field may span several lines. Doubled quotes ("") become a literal quote character.

What happens to nested JSON?

CSV is flat, so nested objects and arrays are flattened into dotted column names — address.city, tags.0. Turn flattening off and a nested value is written into the cell as a JSON string instead.

Can I use semicolons or tabs?

Yes — leave the delimiter on automatic and European semicolon files or TSV exports are recognised, or force one from the list. A UTF-8 byte order mark at the start of the file is stripped automatically.