Advertisement

HTML Table to SQL Insert converter

Convert HTML Table to SQL Insert free, right in your browser. Paste your HTML Table input below and press Convert. You get valid INSERT INTO statements using a table name you choose. No sign-up, and nothing is ever uploaded.

HTML Table input

Paste your HTML Table below, then press Convert.

Runs 100% in your browser. Nothing is uploaded.

Waiting for input.

Advertisement

How the conversion works

Paste your HTML Table on the left and press Convert. The tool first parses the HTML Table (reading the first

element and using its th cells as column names) into an internal table of rows and columns, then writes it out as SQL Insert (building INSERT INTO statements for the table name you choose). If the input cannot be parsed you get a plain-English error instead of a broken file.

Where this comes in handy

People reach for this converter when reusing tables copied from web pages or documentation and the data must land in a relational database. Because everything runs locally in your browser, it is also handy for quick one-off migrations without installing database tools or writing throwaway scripts.

HTML Table to SQL FAQs

What happens to merged cells with colspan or rowspan?
Merged cells are read as the plain text of each td or th in row order. The spanned layout is not reconstructed, so check that the column count looks right.
Can I paste a table copied from a website?
Yes, as long as you paste the actual HTML source with its <table> tags. A rich-text paste without markup will not be detected.
Can I change the target table name?
Yes. Edit the table name field above the output before pressing Convert and the statements use your name.
What SQL dialect is the output?
Standard MySQL-compatible syntax: INSERT INTO `table` (`col`) VALUES (...), (...); with backtick-quoted identifiers.
Is there a size limit?
No hard limit, but very large pastes (tens of megabytes) can slow down the browser tab. For huge inputs, split them into smaller chunks.
Advertisement