How to use JSON → INSERT
- 1. Paste JSON or CSV. Arrays of objects work best.
- 2. Name the table. Quoted as an identifier.
- 3. Choose INSERT or COPY. COPY uses tab-separated stdin style.
- 4. Format next. SQL Formatter if you want pretty INSERT.
About this tool
Seed data often starts as a spreadsheet or an API dump. Emitting INSERT locally means production credentials never sit next to a converter.
NULL
Empty CSV cells become NULL. JSON null too.
COPY
Meant for psql. Tabs and newlines in values are escaped.
Code examples
JSON
[{ "id": 1, "email": "[email protected]" }]