Skip to content
migration.tools
Excel to SQL

Excel to SQL converter

Generate CREATE TABLE and INSERT statements from an Excel sheet, with types inferred per column for the database you choose.

Options
Name or position (1, 2, 3…) of the sheet to convert.

Excel

SQL

Converted files appear here.

Processed on this device. Nothing you paste or drop is uploaded.

How to use it

  1. 1Drop your Excel file onto the input panel — or several at once.
  2. 2Pick the options you need.
  3. 3Download the SQL result. Batches come as one ZIP.

How Excel becomes SQL

Both formats are tabular, so the conversion is a faithful re-encoding: the same header, the same rows in the same order, with quoting and escaping rewritten for SQL.

Excel and SQL, briefly

Excel workbooks (.xlsx) are zipped XML with typed cells, formulas, dates and several sheets. They are how most business data actually arrives, and rarely what an import script wants.

SQL INSERT scripts are the most portable way to load rows into a relational database: any client can run them, and they can be reviewed and version-controlled like code.

Questions

Which spreadsheet files can I convert?

Excel .xlsx, legacy .xls, macro-enabled .xlsm and OpenDocument .ods. The first sheet is used unless you name another one. Formulas are converted to their calculated values and dates to ISO format (2026-01-31).

How are column types chosen?

Each column is scanned: whole numbers become INTEGER or BIGINT, decimals a floating-point type, true/false a boolean, ISO dates DATE or TIMESTAMP, and everything else VARCHAR or TEXT sized to the longest value. Columns with no empty values are marked NOT NULL. Quotes in text are escaped for the dialect you choose.