CSV to SQL INSERT Statements Generator
Convert CSV to SQL INSERT statements (PostgreSQL or MySQL) with CREATE TABLE. Type inference, safe quoting. Free, instant, 100% client-side.
Input · csv0 chars
Output · sql0 chars
🔒 100% private: this tool runs entirely in your browser. Your data is never uploaded, stored or logged anywhere.
How to csv → sql
- Paste CSV with a header row.
- Set the table name and SQL dialect.
- Copy the CREATE TABLE + INSERT statements into your migration or seed file.
FAQ
How are SQL types chosen in CREATE TABLE?
Columns whose values are all numeric get NUMERIC; boolean columns get BOOLEAN (MySQL: TINYINT(1)); everything else TEXT.
Are quotes and special characters escaped?
Yes — string values are single-quote escaped ("" doubling) and identifiers are quoted per dialect.
Is it safe to paste production data?
Nothing leaves your browser — conversion is local. Still, avoid pasting secrets into any online tool as good practice.