Excel to MySQL Converter

Import .xlsx and .xls straight into MySQL or MariaDB — every sheet, mapped columns, batch or upsert, no Excel and no PHP required.

Download Withdata FileToDB

Why Choose Withdata FileToDB to Import Excel to MySQL

  • ✅ Fast import: Millions of Excel rows imported in minutes
  • ✅ 100% local processing: No data upload, privacy safe
  • ✅ No Microsoft Excel required
  • ✅ Cross-platform: Windows, Linux, macOS supported
  • ✅ GUI + CLI mode: For beginners & developers & AI agents

All-in-One Excel to MySQL Features

Core Import

Single Excel b→ MySQL table

4 easy steps to finish import

Batch Import

Multiple Excel files → single MySQL table

Batch import to multiple tables

Sheets Support

Multiple sheets → one MySQL table

Each sheet → separate MySQL table

Cloud Excel

Import online Excel via URL directly

No need to download files locally

Data Write Modes

Update MySQL data from Excel

Upsert: Insert new + Update existing

Automation

Save import sessions

Schedule & auto-run tasks

4 Easy Steps to Import Excel to MySQL

  1. Connect MySQL: Enter MySQL host, port, username, password, and target database (support for SSH/SSL) 📷
  2. Select Excel Source: Local 📷/ cloud URL 📷, choose sheets
  3. Map Fields: Match Excel columns to MySQL table fields 📷
  4. Preview & Run: Check data 📷 and start import 📷

Automate & Schedule Import Tasks

  1. Save your import configuration as a session
  2. Generate script: .bat (Windows) / .sh (Linux/macOS) 📷
  3. Schedule via Crontab or Windows Task Scheduler
  4. Run automatically: hourly, daily, weekly

Supported "Excel to MySQL" Scenarios

Scenario Supported
Local Excel (.xls/.xlsx) to MySQL 📷 ✔ Yes
Cloud Excel (URL) to MySQL 📷 ✔ Yes
Multiple Excel files to 1 MySQL table 📷 ✔ Yes
Multiple Excel files to Multiple MySQL tables 📷 ✔ Yes
Multiple sheets to 1 MySQL table 📷 ✔ Yes
Each sheet to Separate MySQL table 📷 ✔ Yes
Update MySQL from Excel 📷 ✔ Yes
Upsert (Insert + Update) Excel to MySQL 📷 ✔ Yes
CLI & Scheduled Tasks 📷 ✔ Yes

Importing Excel into MySQL — Quick Facts

  • About this database: MySQL uses backtick-quoted identifiers and the LIMIT clause. Compatible with Amazon Aurora MySQL and Amazon RDS for MySQL (same protocol).
  • Default port: 3306
  • Identifier quoting: `backtick`
  • Date / time types: DATETIME, TIMESTAMP, DATE, TIME
  • Large text type: TINYTEXT / TEXT / MEDIUMTEXT / LONGTEXT
  • Binary type: BLOB / TINYBLOB / LONGBLOB
  • Command-line import: mysqlimport, or LOAD DATA INFILE

phpMyAdmin, Workbench, PHP script — or this tool?

Most searches for how to import excel to mysql name a specific route. Each one works, and each one has a wall:

RouteWorks untilWhat to do instead
phpMyAdmin “Import” (CSV)one sheet, one table, and the file has to be converted to CSV first; PHP’s upload limit stops big filesthis tool reads .xlsx directly, no upload
MySQL Workbench “Table Data Import Wizard”it wants CSV/JSON — an .xls/.xlsx has to be saved out first, and multi-sheet files lose their other sheetsthis tool imports every sheet as it is
PHP script (PhpSpreadsheet / fopen)PhpSpreadsheet loads the whole workbook into memory, so a large .xlsx dies on memory_limit; and a per-row INSERT is slowbatch INSERT with this tool, or raise limits and batch in PHP
MariaDB instead of MySQLsame flow: the server is compatible, only the port/credentials changepoint the connection at MariaDB — nothing else changes

Multi-sheet workbooks are where the GUI routes fall apart: import an excel document with multiple pages and phpMyAdmin sees only the active sheet. Here you choose one sheet per table, or all sheets into one table. The same applies to MariaDB: load xlsx into MariaDB properly by mapping types once, then re-run the saved session for the next file.

The MariaDB spelling is the same job. using excel to input to mariadb, how to put excel data into mariadb, import excel db in mariadb and excel mit mariadb verbinden all mean "point the connection at MariaDB" — nothing else changes.

The fastest way to insert excel spreadsheet data into a MariaDB table is a batched INSERT, not a row-by-row loop. That is what this tool does, and it is the difference between minutes and hours on a large workbook.

Scripting routes, for reference. read xlsx using php to insert records to mariadb works with PhpSpreadsheet and a batched statement, but the workbook has to fit in memory_limit. import excel into mariadb using dbeaver needs the data saved as CSV first, and a workbook with multiple pages loses every sheet but the active one. To extract excel file to bulk load, pick the file here and let the tool stream it — no intermediate CSV.

Common Pitfalls When Importing Excel into MySQL

  • InnoDB rolls the whole batch back on the first error unless strict mode is relaxed or INSERT IGNORE is used.
  • AUTO_INCREMENT keeps counting after a rollback, so failed rows leave gaps in the id sequence.

Frequently Asked Questions

How do I import an Excel file with many sheets?
Choose the mode first: one sheet → one table (each sheet gets its own table), or all sheets → one table (appended). The sheet list is read from the workbook, so nothing has to be saved out as CSV.
Do I need Microsoft Excel or PHP installed?
Neither. The .xlsx is parsed directly and written over the MySQL/MariaDB protocol — no Office, no PhpSpreadsheet, no web server.
How do I load a large .xlsx without hitting a memory limit?
That limit is a PHP one (memory_limit for PhpSpreadsheet). Here the rows are streamed and committed in batches, so the file size is bounded by disk, not by RAM.
How are dates, numbers and leading zeros handled?
An Excel date is a serial number, so it is converted to a real date on the way in; text that looks numeric keeps its leading zeros only if the target column is VARCHAR, not INT.
Can I upsert or update existing rows, instead of appending duplicates?
Yes — pick append, replace, update or upsert. Update and upsert need a key column; without one, a re-run simply adds rows again.
Does it work with MariaDB?
Yes. MariaDB speaks the same protocol: change the host and port and the same session loads xlsx into MariaDB.
Can I import many files into one of several tables?
Yes — point the batch mode at a folder; files whose columns match are appended into the same table, one after another.
Can it run on a schedule?
Save the import, generate the .bat/.sh script and register it with Windows Task Scheduler, cron or a launchd agent.

Start Importing Excel to MySQL Today

Free trial available | Full tutorials | 24/7 support

$75 one-time · volume discounts to $55 · 30-day money-back · pricing & licence terms

Download Withdata FileToDB

Withdata FileToDB - One-stop solution for importing Excel data to MySQL: local, cloud, batch, automation & more