Skip to content
TabKiwiTabKiwi

SQL INSERT Generator

Turn CSV or JSON rows into batched INSERT statements for PostgreSQL, MySQL, SQLite or SQL Server.

DeveloperRuns in your browser. Your files never leave this device.
Loading tool…

About this tool

Paste spreadsheet-style CSV or a JSON array and get INSERT statements written for the database you choose, with the right identifier quoting, string escaping, boolean style and NULLs. Multi-row VALUES lists keep big seed files short, and you can add a CREATE TABLE with inferred column types or wrap everything in a transaction. Your data stays in the browser.

How to use SQL INSERT Generator

  1. Choose CSV or JSON input and paste your data.
  2. Set the table name and database type.
  3. Choose how many rows go into each INSERT.
  4. Optionally add CREATE TABLE or a transaction.
  5. Copy the SQL or download it as a .sql file.

Frequently asked questions

How are quotes and backslashes in my data handled?

Single quotes are doubled in every dialect. For MySQL, backslashes are also escaped because MySQL treats them as escape characters by default.

Why does SQL Server stop at 1,000 rows per statement?

SQL Server rejects a VALUES list with more than 1,000 rows, so larger batches are split automatically.

What happens to missing fields?

Every column found in any row is included. Rows that do not have a value for a column get NULL.

More Developer tools

View all 91 →