Excel to MySQL converter for database and Workbench imports
Upload the Excel file, choose MySQL, set the table name and column types, then convert and download the .sql file. Import it with the mysql client, phpMyAdmin or MySQL Workbench.

Short answer
To get an Excel sheet into MySQL without fighting the import wizard, convert the workbook to a MySQL SQL file and run it. The file creates a utf8mb4 InnoDB table with typed columns, writes dates as YYYY-MM-DD and decimals with a dot, and can upsert on a primary key. MySQL Workbench and phpMyAdmin cannot read XLSX directly, so this skips the CSV step.
MySQL has its own import options, such as LOAD DATA INFILE and the Workbench import wizard, but both trip over encodings, date formats and decimal separators that come from Excel. A prepared SQL dump avoids those issues because types and escaping are decided before the database sees anything.
XlsConverter writes MySQL syntax specifically: backtick identifiers, utf8mb4 tables and MySQL date literals. For other databases, see Excel to PostgreSQL or the general Excel to SQL converter.
How to convert Excel to MySQL in three steps
- 1Upload your Excel workbook.
- 2Choose MySQL, the table name, engine and column types.
- 3Convert, download the .sql file and run it against your database.
Why MySQL imports from Excel break on charset and decimals
MySQL tables created with the older utf8 charset store only three bytes per character, so emoji and some Asian characters fail or are cut off. We write CHARACTER SET utf8mb4 on the table and SET NAMES utf8mb4 at the top of the dump, which makes the import independent of the client default. Accented names from Excel arrive intact.
Decimal values are another frequent problem. A workbook made in Germany shows 1.234,50, and a naive export writes that text into a DECIMAL column, which MySQL either rejects or truncates in non strict mode. We read the stored numeric value from the cell, not the displayed text, and write 1234.50. DECIMAL precision and scale are calculated from the actual data.
Dates must be YYYY-MM-DD for DATE and YYYY-MM-DD HH:MM:SS for DATETIME. Excel serial numbers are converted, and empty date cells become NULL instead of the zero date 0000-00-00 that strict mode refuses. For very large sheets, a CSV export loaded with LOAD DATA can be faster, and Excel to SQLite is handy for a local copy.
Ways to import Excel into MySQL compared
| Method | Reads XLSX directly | Column types | Install needed | Best for |
|---|---|---|---|---|
| LOAD DATA INFILE | No, CSV only | Table must exist first | No, but local_infile or the FILE privilege must be enabled | Very large CSV files on a server you control |
| MySQL Workbench Table Data Import Wizard | No, CSV or JSON | Guessed, editable per column | Yes, Workbench | An occasional small import by a developer |
| phpMyAdmin Import tab | No, CSV, ODS, SQL or XML | Mostly text columns from CSV | No, if hosting provides it | Shared hosting without shell access |
| Desktop converters such as DBConvert or Convert-in | Yes | Mapped in the app | Yes, usually Windows | A workstation with a direct database connection |
| XlsConverter | Yes, XLSX and XLS | Inferred from the data, adjustable | No, runs in the browser or by API | Recurring imports, teams and files from other people |
If you already have a clean CSV and shell access, LOAD DATA is the fastest route. The converter helps when the source is a real Excel workbook with regional decimals, Excel dates or accented text, or when the same import repeats every week.
Excel to MySQL questions
How do I import an Excel file into MySQL?
Convert the workbook to a MySQL SQL dump, then run it with the mysql command line client, phpMyAdmin or MySQL Workbench.
Does the dump work with MariaDB?
Yes. The MySQL output uses syntax that MariaDB accepts, including utf8mb4 and ON DUPLICATE KEY UPDATE.
How do I avoid duplicate rows when reimporting?
Set a primary key column and choose ON DUPLICATE KEY UPDATE, so existing rows are updated instead of duplicated.
Why do accented characters turn into question marks in MySQL?
The table or connection uses a charset that cannot store them. The dump sets utf8mb4 on both, which stores every Unicode character.
How do I import an Excel file into MySQL Workbench?
The Table Data Import Wizard in MySQL Workbench reads CSV and JSON, not XLSX. Convert the workbook to a MySQL SQL file, open it in Workbench with File, Open SQL Script, and run it. The table and all rows are created in one step.
Can phpMyAdmin import an XLSX file?
Current phpMyAdmin versions import CSV, ODS, SQL and XML but not XLSX. Upload the SQL file produced here on the Import tab instead, which also keeps column types and the utf8mb4 charset you chose.
Can I try the Excel to MySQL converter?
A one-time demo converts up to 100 rows and lets you download the SQL after signup. Full imports need a plan from 24 USD per month billed yearly.
Related converters
Convert full files and batches
Pro starts at $24 per month billed yearly. Cancel any time.