Excel to SQL Converter

Convert Excel or CSV data to SQL. Paste cells or drop an .xlsx file to get a CREATE TABLE with detected types plus batched INSERT statements for your database.

  • Free, no sign-up
  • Runs in your browser
  • Your data stays private

How to use the Excel to SQL Converter

  1. Paste cells copied from Excel or Sheets, or drop an .xlsx file.
  2. Set the table name, database and primary key option.
  3. Copy the SQL and review the detected schema.

Why use this Excel to SQL Converter

  • Direct .xlsx readingReads the first worksheet of an Excel file in your browser, with dates converted for you.
  • Type detectionINT, BIGINT, DECIMAL, BOOLEAN, DATE, TIMESTAMP and sized VARCHAR chosen from your data.
  • Schema tableShows each column, its detected type and the number of blanks.
  • Database optionsPrimary key, DROP TABLE, NOT NULL and batch size for five databases.

Frequently asked questions

How do I import an Excel sheet into MySQL?

Paste the cells or drop the .xlsx file, choose MySQL and run the generated CREATE TABLE and INSERT script.

How are column types chosen?

The tool scans every value in a column and picks the narrowest suitable type, falling back to VARCHAR or TEXT.

Is my spreadsheet uploaded?

No. The file is read in your browser and nothing is sent anywhere.

Related tools

More Developer Tools

User Reviews

–
No ratings yet
Write a review
Your rating *

Your email is never published. Reviews are moderated, and links aren't allowed.

What users are saying

No reviews yet

Be the first to share your experience with this tool — your feedback helps others.