Skip to content

Tools/CSV ↔ JSON

CSV ↔ JSON

Parse CSV to JSON objects and emit INSERT statements. Nothing is uploaded.

Also: CSV to JSON · JSON to CSV

Loading tool…

How to use CSV ↔ JSON

  1. 1. Paste CSV or JSON. Header row becomes object keys.
  2. 2. Pick an output. JSON, CSV, or INSERT.
  3. 3. Name the table. Used only for SQL emit.
  4. 4. Copy. Local only.

About this tool

CSV is how spreadsheets and warehouses still talk. JSON is how APIs talk. INSERT is how you seed a database from either. This tool does the boring mapping in the tab.

Quoted commas

PapaParse honors RFC 4180 quotes. If a column is wrong, look for an unescaped quote.

SQL literals

Strings are quoted and doubled. Numbers stay numeric. Empty cells become NULL.

Code examples

CSV

id,email
1,[email protected]

Frequently asked questions

Related tools

All tools