Excel → SQL INSERT Generator
Drop an .xlsx file and generate a complete, ordered set of SQL scripts — database creation, table schemas, batched INSERT statements per sheet, and a validation report. Choose your dialect and download everything as a .zip.
.xlsx → SQL
Drop an Excel workbook to generate migration scripts
.xlsx, .xls, .csv supported
⚙️ Configuration
📋 Schema Overview
What Does This Tool Do?
The Excel to SQL INSERT Generator reads an Excel workbook entirely in your browser using SheetJS. It inspects each worksheet — column headers, data types, row counts — and generates a set of numbered SQL scripts that create the database, build the tables, load the data, and verify the results.
The scripts are ordered for safe execution: database creation first, then all table schemas, then data inserts one table at a time with configurable batch sizes, and finally a validation report that checks row counts match the source file.
Generated Script Breakdown
| Script | Contents | Purpose |
|---|---|---|
| 01_Create_Database.sql | CREATE DATABASE, USE | Set up the target database |
| 02_Create_Tables.sql | CREATE TABLE with inferred types per sheet | Build all table schemas |
| 03.N_Data_SheetName.sql | Batched INSERT statements for one sheet | Load data one table at a time |
| 04_Validation.sql | Row count verification per table | Confirm all data loaded correctly |
Supported SQL Dialects
| Feature | MySQL | PostgreSQL | SQL Server | SQLite |
|---|---|---|---|---|
| Identifier quoting | `backticks` | "double quotes" | [brackets] | "double quotes" |
| String prefix | None | None | N'...' | None |
| Boolean type | TINYINT(1) | BOOLEAN | BIT | INTEGER |
| Multi-row INSERT | Yes | Yes | Limited to 1000 | Yes |
