SQL INSERT Generator

Generate INSERT statements for four databases from the same data. Paste CSV or a JSON array, choose PostgreSQL, MySQL, SQLite or SQL Server, set how many rows go in each statement, and the generator handles the details that differ between them: identifier quotes, boolean values, string escaping, column types and batch limits.

Input
Database

1 writes one statement per row.

3 rows in 1 INSERT. Columns: id INTEGER, name TEXT, city TEXT, phone TEXT, amount NUMERIC, paid BOOLEAN, order_date DATE

SQL generation runs in your browser. What you type never leaves this device.

Features

  • Switch between CSV and JSON input without losing what you pasted

  • Per-database quoting: "double quotes", `backticks` or [brackets], only where needed or always

  • Booleans as TRUE/FALSE or 1/0, and MySQL backslashes escaped, according to the database

  • Rows per INSERT from 1 to 10,000, capped at 1,000 for SQL Server

  • Optional CREATE TABLE with inferred types and BEGIN/COMMIT around everything

  • Schema-qualified table names like public.orders or dbo.Orders

Who uses it

Backend developers

Write seed data and migration fixtures for whichever database the project uses, without hand-typing parentheses and quotes.

Data and support teams

Load a sheet of corrections or a customer list into a staging table, then join it against production data with ordinary SQL.

Students

Fill practice tables for DBMS lab exercises quickly, and see how the same INSERT looks in MySQL and PostgreSQL.

What changes between databases

Quoting and escaping

  • Strings use single quotes everywhere; a quote inside is doubled: 'D''Souza'.
  • MySQL also treats a backslash as an escape, so C:\temp is written C:\\temp.
  • Column names with spaces, capitals or reserved words (order, name, date) are quoted: "name" in PostgreSQL and SQLite, `name` in MySQL, [name] in SQL Server.
  • SQL Server text with non-English characters is written N'...' so it is stored as Unicode.

Batch size

One INSERT with many rows is much faster than many single-row INSERTs, because the database parses and commits once. 100 to 500 rows per statement is a safe middle ground. SQL Server refuses more than 1,000 rows in one VALUES list, and very old SQLite versions (before 3.7.11) do not accept multi-row VALUES at all; set the batch to 1 for those.

SQL INSERT Generator - FAQ