Excel to SQL Converter
Convert an Excel file into SQL INSERT statements for PostgreSQL, MySQL, SQL Server, Oracle or SQLite. Free, in your browser.
How to use the Excel to SQL Converter
Generate CREATE TABLE and INSERT statements from sample data.
- Load sample data
- Review the column types
- Pick a database and copy
Tips
- Works for PostgreSQL, MySQL, SQL Server, SQLite and Oracle.
- Set a primary key and edit any type the tool guessed.
- Copy and Download contain the full script.
Example
Input: orders.xlsx (first sheet)
Output: CREATE TABLE orders (...);
INSERT INTO orders VALUES (...);
Frequently asked questions
Which Excel files work?
Modern .xlsx files. The first sheet is read, and the first row becomes the column names.
Is my Excel file uploaded?
No. It is read in your browser and never sent to a server.
Does it connect to my database?
No. It only writes the SQL for you to run yourself.
Guides