Import your Excel file or paste copied cells, then open the SQL tab. You get CREATE TABLE and INSERT statements for the database you pick; this page starts on SQL Server.
Runs entirely in your browser. Your data is never uploaded. Tiếng Việt
You turn Excel into SQL when you need to load a list into a database quickly without building an import tool. What goes wrong is names with apostrophes like O'Brien, column names with spaces or accents, and differences between database engines. The output is one-way SQL: you can export it, but the tool cannot read SQL back.
Import file and choose an .xlsx file, or copy a range in Excel, paste it into Quick paste and press Load into table ↵.⚙ Options: type the table name, choose the database, and decide on CREATE TABLE and whether to merge the inserts.Copy result to run it in your query tool, or Download file to save an .sql file.On SQL Server, column names sit in square brackets and the type is NVARCHAR(MAX). O'Brien & Co becomes O''Brien & Co because apostrophes are doubled, and numbers such as 120 stay quoted strings.
| Code | Brand | Qty | Location |
|---|---|---|---|
| P-100 | O'Brien & Co | 120 | Shelf A |
| P-101 | L'Oréal | 45 | Shelf B |
| P-102 | Dell | 8 | Shelf A |
CREATE TABLE [stock] (
[Code] NVARCHAR(MAX),
[Brand] NVARCHAR(MAX),
[Qty] NVARCHAR(MAX),
[Location] NVARCHAR(MAX)
);
INSERT INTO [stock] ([Code], [Brand], [Qty], [Location]) VALUES
('P-100', 'O''Brien & Co', '120', 'Shelf A'),
('P-101', 'L''Oréal', '45', 'Shelf B'),
('P-102', 'Dell', '8', 'Shelf A');INSERT runs against the default name. You can also fix it quickly by hand in the SQL file.VALUES statement, tidier than many single ones. Off lets you run or debug row by row.TEXT, or NVARCHAR(MAX) on SQL Server, and numbers are quoted too. After loading, change types with ALTER TABLE or edit the CREATE TABLE by hand.NULL. An empty Excel cell becomes an empty string '', not NULL.NULL. You get a text-only CREATE TABLE and INSERT statements of strings.No. Apostrophes inside values are doubled, so O'Brien becomes O''Brien and the string is not cut short.
Choose MySQL / MariaDB under Database. Column names get backticks and backslashes in values are escaped.
No. Every value is written as a quoted string and every column is text. Change the column types after loading if you need arithmetic.
No. The file is read and the SQL is generated in your browser.
Only the first sheet is loaded. Move the one you need to the front, or copy its cells and paste into Quick paste.