CSV to SQL Converter
Convert CSV files to SQL INSERT statements
Files stay on this deviceRuns entirely in your browserFree — no signup
Drop your file here or browse from your device
Accepts CSV, TSV, TXT. Maximum input: 10 MiB. Files above this hard limit are rejected before local processing.
How to Convert
- Upload your CSV file
- Set the table name
- Choose your SQL dialect
- Customize column types and constraints
- Copy or download the SQL
Features
- Auto-detect column types
- Multiple SQL dialects (MySQL, PostgreSQL, SQLite, SQL Server)
- CREATE TABLE statements
- Batch INSERT statements
- Primary key selection
Use Cases
- Import CSV data into databases
- Generate database seed files
- Migrate spreadsheet data to SQL
Frequently Asked Questions
Which SQL dialects are supported?
We support MySQL, PostgreSQL, SQLite, SQL Server, and Oracle syntax.
Related Tools
Need to convert the other way? Try our Sql To Csv