SQL INSERT generator
Make one batch INSERT statement and a CREATE TABLE from rows of CSV, for several SQL databases.
Database
Missing a feature or found a bug in SQL INSERT generator? Tell me on X (@_andrewtran) or by email.
How to use SQL INSERT generator
- Paste rows as CSV, with the column names on the first line.
- Set the table name and choose your database.
- Copy the SQL or download it as a file.
Questions and answers
Is my data sent anywhere?
No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.
Why one statement for all rows?
A single INSERT with many rows runs much faster than one statement per row. Untick the option to get one per row.
Where are the other options?
This page opens CSV to SQL converter with one choice already made. Every option of that tool is still here, and its own page says more about it.
Related tools
CSV to SQL converter
Turn CSV into SQL INSERT statements, with an optional CREATE TABLE, for PostgreSQL, MySQL and more.JSON to SQL converter
Turn a JSON list of objects into SQL INSERT statements, with an optional CREATE TABLE.JWT generator
Sign a JSON payload as a JWT with a secret (HS256) or a private key (RS256, ES256, EdDSA and more).2FA code generator
Generate time-based one-time codes (TOTP) from a secret or an otpauth:// link, to test sign-in flows.