CSV input
Paste your CSV below, then press Convert.
SQL Insert output
Waiting for CSV input.
Convert CSV to SQL Insert free, in seconds. Paste your data below, press Convert, then copy the result and run it against MySQL, PostgreSQL or SQLite. Everything runs in your browser, so nothing is ever uploaded.
Paste your CSV below, then press Convert.
Waiting for CSV input.
Paste CSV into the input box and press Convert (or just keep typing, conversion happens as you type). The tool parses it with the PapaParse library, using the first row as column headers, then generates a single multi-row INSERT statement, quoting strings, passing numbers through and turning blanks into NULL. Parsing uses the PapaParse library (loaded once from a CDN); the conversion itself happens locally and your data is never uploaded.
The output is one multi-row INSERT statement, which loads faster than one statement per row. Strings are single-quoted with inner quotes doubled, numbers pass through unquoted, booleans become TRUE or FALSE, and empty values become NULL. Edit the Table name field before converting to target your real table; the name is sanitized to safe characters automatically.