All tools / Converters

CSV to SQL INSERT

Turn CSV rows into INSERT statements.

Runs in your browser · your data never leaves your device
Ad space

How it works

The first CSV row becomes the column list. Numbers stay unquoted, empty cells become NULL, and single quotes inside text are escaped. Quoted fields with commas are handled.

Frequently asked questions

Does it work with PostgreSQL?

Column names use backticks (MySQL style). For PostgreSQL, replace them with double quotes.

Is there a size limit?

Only your browser memory. Very large files are better imported with COPY or LOAD DATA.

Related tools