Skip to content
100% local

SQL insert statement generator

Generate ready-to-run SQL INSERT statements from a column schema, without touching a real database.

Output

SQL insert statement generator

Describe a table and this tool writes the INSERT statements for you. Name the table, list its columns as "name:type" pairs — id, name, email, uuid, boolean, date or incrementing-date — set how many rows you want, and it generates a complete, ready-to-paste SQL script: one INSERT INTO statement per row, with every value already quoted or left bare correctly.

Each column type maps to a realistic generator. "id" counts up from 1 for a primary key column. "name" and "email" produce plausible fake people (and a matching lowercase email). "uuid" generates a fresh RFC 4122 identifier per row. "boolean" alternates between TRUE and FALSE. "date" picks a random day from a fixed multi-year range, while "incrementing-date" advances one day per row — useful for seeding created_at columns in order. String values are wrapped in single quotes with embedded quotes doubled, so the output is safe to run as-is; numbers and booleans are left unquoted, exactly as a SQL engine expects.

This is a generator, not a converter: it doesn't read an existing CSV or JSON file and doesn't call out to any database to inspect a real schema — it fabricates rows from the shape you describe, which is exactly what you want when you need a few hundred throwaway rows to seed a dev database, populate a demo, or stress-test a migration before running it against real data. If you already have data and want it turned into SQL, use the CSV to SQL converter instead; if you want JSON test data rather than SQL, use the mock JSON data generator.

Everything runs locally in your browser — the schema you describe and the SQL it produces never leave your device, so it's safe to use for internal table names and column structures you'd rather not paste into a third-party service. Copy the result, download it as a .sql-ready .txt file, or tweak the row count and regenerate instantly.

FAQ

What column types are supported?
Seven generators: id (sequential integer), name (random full name), email (random email), uuid (random UUID), boolean (random TRUE/FALSE), date (a random date from a fixed range) and incrementing-date (one day later per row).
How do I define the columns?
List "name:type" pairs separated by commas, for example id:id,name:name,email:email,active:boolean. Unknown types or pairs without a colon are skipped.
Are string values escaped correctly?
Yes. Text values are wrapped in single quotes and any single quote inside them is doubled, so the generated SQL runs without a syntax error. Numbers and booleans are left unquoted.
Does it read my existing data or database?
No. It only fabricates rows from the column schema you type in — it never connects to a database or reads a file. To convert real data, use the CSV to SQL converter instead.
Is my schema or the generated SQL uploaded anywhere?
No. Generation runs entirely in your browser — nothing you type or generate here is sent to a server.