What SQL does this tool generate?
It generates CREATE TABLE statements from inferred column types plus data statements such as multi-row INSERT, single-row INSERT, MySQL REPLACE, UPSERT (MySQL/MariaDB and PostgreSQL), SQL Server MERGE, or PostgreSQL COPY.
Which SQL dialects are supported?
PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, Oracle, and ANSI SQL. Dialect selection affects identifier quoting, boolean literals, and UPSERT/MERGE syntax.
How are HTML table headers detected?
You can use thead cells, the first data row, or generated column names (col1, col2, …). Headers are normalized to snake_case by default.
Does this handle merged cells (rowspan/colspan)?
Yes. Merged cells are expanded into a rectangular grid so each row has consistent column values before SQL generation.
Can I convert multiple tables in one HTML document?
Yes. When multiple tables are detected, use the table picker to choose which one to convert. Each table is inspected separately.
Does this execute SQL against my database?
No. The tool only generates SQL text locally in your browser. Copy the output and run it in your own database client.
Is my HTML uploaded anywhere?
No. Parsing and SQL generation run locally in your browser. Optional URL import uses a server proxy only when you explicitly fetch a page URL.
What is the inverse of this tool?
Use the SQL to HTML Table Converter to turn SQL INSERT statements or query results back into HTML tables with live preview.
Can I add a synthetic primary key?
Yes. Enable “Add synthetic primary key” to append an auto-increment-style id column, useful when the HTML table has no natural key.
What row limits should I expect?
Small and medium tables convert instantly in the main thread. Large HTML documents use a Web Worker. Very large tables (tens of thousands of rows) may be slow depending on your device.
How are data types inferred?
Cell values are parsed as numbers, booleans, dates, or text when “Infer data types” is enabled. Empty cells can optionally become NULL.
Can I export only CREATE TABLE or only INSERT statements?
Yes. Use the CREATE only and INSERT only tabs in the SQL output panel, or toggle include options in conversion settings.