Convert CSV to SQL INSERT statements online
Convert a CSV into SQL INSERT statements (custom table name), in your browser.
The first CSV row defines the columns.
🔒 100% client-side — no data sent
Turn a CSV file into ready-to-run SQL INSERT statements, with your own table name. The conversion runs 100% in your browser, so your data never leaves your machine. Perfect for quickly seeding a database from a spreadsheet export.
What is it for?
- ▸ Import an Excel or Google Sheets export into MySQL or PostgreSQL
- ▸ Generate seed data for a development database
- ▸ Migrate spreadsheet data into a SQL table without an ETL tool
- ▸ Create a versionable insert script to commit in a Git repo
FAQ
How do I convert a CSV file to a SQL INSERT query?
Paste or upload your CSV, set the target table name, and the tool automatically generates INSERT INTO statements using the header columns. You can then copy the result straight into your SQL client.
Is the CSV to SQL converter compatible with MySQL and PostgreSQL?
Yes, the generated INSERT INTO syntax is standard and works with MySQL, PostgreSQL, SQLite and SQL Server. You just need to adjust the table name to match your schema.
Is my CSV data sent to a server?
No, all processing happens locally in your browser. No data is uploaded or stored, which keeps even sensitive files private.