CSV to SQL INSERT
Generate SQL INSERT statements and CREATE TABLE DDL directly from CSV rows.
Your input is processed locally in this browser tab.
How to use CSV to SQL INSERT
Select your SQL dialect (PostgreSQL, MySQL/MariaDB, SQLite, or SQL Server) and table name.
Configure Rows per INSERT, optional CREATE TABLE DDL generation, and Empty → NULL behavior.
Paste or load CSV data and copy or download the generated .sql file.
Frequently asked questions
How are single quotes inside CSV text cells escaped?
Single quotes are doubled ('') per standard SQL string escaping.
Can I preview column SQL types automatically?
Yes. Check CREATE TABLE to infer INTEGER, FLOAT/DOUBLE, BOOLEAN/BIT, or TEXT/VARCHAR columns.