CSV to SQL INSERT Generator

Paste CSV data, name your table, and get ready-to-run INSERT statements with proper escaping.

Escaping rules

Quoted CSV fields are unwrapped, embedded double-quotes handled, SQL single-quotes doubled, numeric cells emitted unquoted, empty cells become NULL.

Frequently asked questions

Headerless CSV?

Add a header row first — it defines the column list.

Backticks?

Column names use MySQL backticks; swap for double quotes on Postgres.

Batch VALUES?

Wrap the outputs yourself if you prefer one multi-row INSERT.