Convert colors between HEX, RGB, HSL, and CMYK — online color converter with live preview.
Open toolCSV to SQL
Convert CSV rows into ready-to-run SQL INSERT statements.
Privacy and limitations
Your tool input is processed in this browser rather than submitted to our server. Large inputs can be slow or exceed your device's memory. Keep a copy of the original and check the output before relying on it; formatting or conversion does not establish that the content is correct or safe.
Read the privacy policyAbout CSV to SQL
This tool converts CSV rows into SQL INSERT statements, ready to paste into a database client or migration script. It infers column types from the data (numbers and booleans stay unquoted, text is safely quoted and escaped), and lets you choose between one INSERT per row or a single batched statement.
How to use this tool
- 1Paste CSV data with a header row, or upload a .csv file.
- 2Set the target table name.
- 3Toggle 'Single batch INSERT' to generate one INSERT with multiple VALUES rows, or leave it off for one statement per row.
- 4Copy the SQL or download it as a .sql file.
Common use cases
Frequently asked questions
Is the SQL safe from injection issues?
Text values have single quotes escaped by doubling them (the standard SQL escaping approach), so a value like O'Brien becomes O''Brien correctly rather than breaking the statement.
How are empty cells handled?
An empty CSV cell becomes SQL NULL rather than an empty string, which usually matches what you want for optional columns.
What's the difference between batch and individual INSERT statements?
Batch mode produces one INSERT with all rows listed under a single VALUES clause - more efficient for bulk loading. Individual mode produces a separate INSERT statement per row, which can be easier to review or run selectively.
Does it know my database's exact SQL dialect?
It generates standard, widely-compatible SQL (unquoted numbers, TRUE/FALSE, NULL, single-quoted strings). Dialect-specific syntax like MySQL backticks or Postgres-specific types isn't applied automatically.
{
"runs_in_browser": true,
"data_sent_to_server": false,
"signup_required": false,
"price": "free",
"category": "Converters"
}