Drag files here orclick to upload
2 files, max 5M each
Upgrade Membership
No files yet
Excel to SQL is an online Excel to SQL converter with a free daily quota — no installation, no registration, ready to use. It transforms .xlsx, .xls, .xlsm files into SQL INSERT and CREATE TABLE statements with one click, supporting nine major database dialects: MySQL, MariaDB, PostgreSQL, SQLite, Oracle, SQL Server, IBM DB2, SAP HANA, and DaMeng DM, with customizable table names and batch insert sizes. All processing is done entirely in your browser, 100% protecting your privacy — files are never uploaded to any server. Whether for data migration, database initialization, or cross-platform data exchange, it handles it with ease, delivering results comparable to professional database tools.
Click the upload area or drag and drop your Excel files (.xlsx, .xls, .xlsm) into the upload box
Select the target database type (MySQL/PostgreSQL/Oracle/SQL Server) in the parameter panel, and optionally set table name, batch size, and whether to generate CREATE TABLE statements
Choose the sheet processing mode (merge all sheets or first sheet only), then click "Start Processing" to convert
After conversion, click "Download" to get your SQL file — multiple files support batch download as a ZIP archive
A free daily quota is provided for everyday light needs; for higher or professional use, upgrade to membership to unlock more
All conversion runs entirely in your browser; files are never uploaded to any server and your data stays on your device
Automatically detects numeric, date, boolean and other data types to generate appropriate column types
Compatible with MySQL, PostgreSQL, Oracle, SQL Server and nine other major database dialects
Supports customizable table names and batch insert sizes, with optional CREATE TABLE statements
Different databases have variations in identifier quoting, data types, and auto-increment syntax. This tool automatically generates the appropriate SQL syntax based on your selected database type:
| Database | Identifier Quote | Special Syntax |
|---|---|---|
| MySQL | `column_name` | AUTO_INCREMENT, ENGINE=InnoDB |
| MariaDB | `column_name` | AUTO_INCREMENT, ENGINE=InnoDB |
| PostgreSQL | "column_name" | GENERATED AS IDENTITY, BOOLEAN |
| SQLite | "column_name" | AUTOINCREMENT, TEXT, REAL |
| Oracle | "column_name" | NUMBER, VARCHAR2, SEQUENCE |
| SQL Server | [column_name] | IDENTITY(1,1), NVARCHAR |
| IBM DB2 | "column_name" | GENERATED ALWAYS AS IDENTITY |
| SAP HANA | "column_name" | COLUMN TABLE, GENERATED AS IDENTITY |
| DaMeng DM | "column_name" | IDENTITY(1,1), VARCHAR2 |
Excel to SQL is a tool that converts Excel spreadsheets into SQL scripts. It turns .xlsx, .xls and other files into INSERT and CREATE TABLE statements with one click, supporting multiple database dialects — all processed locally in your browser.
It only takes a few steps. First upload or drag an Excel file, then select the target database type and set the table name and batch size in the parameter panel, and finally click "Start Processing" and download the SQL file.
Supports .xlsx (Excel 2007+), .xls (Excel 97-2003), .xlsm (macro-enabled workbook) and other mainstream Excel formats, covering virtually all Excel file types used in daily work.
Yes. The generated SQL follows standard SQL syntax and is adapted for each specific database (identifier quoting, data types, auto-increment syntax, etc.). We recommend previewing the SQL content before execution to verify table and column names. Column types in CREATE TABLE statements are auto-inferred and may need minor adjustments based on your actual requirements.
The tool scans all data in each column of your Excel file and automatically infers the most appropriate SQL data type. Pure numbers map to numeric types, date formats to date types, true/false to boolean types, and everything else to text types. We recommend reviewing key column type definitions after generation.
In the default merge mode, all sheets are converted sequentially into a single SQL file. To convert only the first sheet, select "First sheet only" mode. For multi-sheet files, consider uploading sheets separately to set different table names for each.
Batched INSERT statements (e.g., 50 rows per batch) are significantly more efficient than individual INSERTs, greatly reducing database round-trips. Choose batch size based on your data volume: single-row inserts for small datasets (easier to debug), and 50-500 rows per batch for large datasets (faster import speed).
Regular-sized Excel files are supported. For very large files, consider removing irrelevant data before conversion. The exact limits follow your membership benefits; the free quota already covers daily use.
This tool saves time and reduces errors. It automatically parses Excel and generates syntactically correct SQL, avoiding the formatting mistakes of manual writing — especially useful for large-scale batch imports.
Yes. As a web app, it works in browsers on phones, tablets, and computers, so you can generate SQL anytime, anywhere.
First verify the table and column names. Make sure the generated table name follows your database's naming conventions and that column types match expectations; if needed, adjust the parameters and convert again, or manually refine the generated SQL.
Files are processed entirely in your browser — no registration required. No conversion data is ever uploaded to any server; your data always stays on your device. Feel free to use with confidence.
Content last updated:2026-08-07
Accurately convert PDF to Word online, preserving the original layout and supporting text and image editing.
Accurately convert PDF to Excel online, preserving the original layout, with editable text and images.
Accurately convert PDF to PPT online, preserving the original layout and supporting text and image editing.
Convert PDF to HTML format online with precision, perfectly preserving the original layout.
Accurately convert PDF to EPUB e-book format online, preserving the original layout and content for easy cross-device reading.
Convert PDF to TXT online, preserving the original layout format.
Convert PDF to high-quality XPS document format online, fast, accurate, and lossless.
Convert PDF to high-quality TIFF image format online, supporting clear output and batch processing, easily meeting document archiving and printing needs.
Convert PDF to high-quality BMP images online, fast and accurate, preserving original clarity.
Convert PDF to high-quality JPG images online, fast, accurate, and lossless.
Convert PDF to high-quality GIF images online, quickly generate clear animations to enhance document presentation.
Convert PDF to high-quality PNG images online, clearly preserving the content of each page.
Convert PDF to high-quality EMF image format online, easily achieving vector graphics conversion.
Convert PDF to high-quality SVG image format online, easily preserving original layout and clarity.
Convert PDF to ISO-compliant PDF/A files online, ensuring compliance and reliability for long-term storage and archiving.
Quickly convert EPUB ebooks to PDF format online, preserving the original layout for easy reading and printing.
Convert Markdown to high-quality PDF online, fast and accurate, preserving the original layout.
Quickly convert TXT files to PDF format online, support one-click export, retain original layout, and easily achieve document format conversion.
Quickly convert XPS files to high-quality PDF online, supporting batch processing while preserving original layout and content, making format compatibility and document management effortless.
Quickly convert images to PDF online, supporting batch processing for efficient generation of clear, editable PDF documents.