How to use CSV to SQL INSERT
- Load the example to check the expected input shape, or select your file. Keep a separate copy of the original.
- Review the options and rules below. Run the tool, then compare representative values, row counts and headers.
- Copy the output or download a new file. Input changes clear the previous result so you cannot download stale output.
Rules and limitations
Use a table name with letters, digits and underscores. Values are quoted strings, including empty strings. Types and constraints are not inferred. MySQL output sets NO_BACKSLASH_ESCAPES; PostgreSQL values containing backslashes are rejected. Review the generated SQL in a test database. Nothing is executed here.
Worked example
Use the English example button above. Identifiers such as 0012 are strings; they should not silently become 12. For conversion, compare record counts before and after. For cleaning, filtering, comparison and lookup, check the operation-specific summary.
Troubleshooting
If columns shift, check the delimiter and quote fields containing delimiters or newlines. If characters look wrong, select the encoding before loading the original file again. CSV has no stored cell types; spreadsheet software may infer numbers and dates when opening it.
Does my file leave my device?
The tool processes selected files and pasted input in browser memory. It does not upload the file or its name. Hosting providers may process page-request metadata such as IP address and requested URL. See the privacy notice.