How to use CSV to SQL INSERT Generator
- Open or paste CSV and set the table name.
- Choose quoting style and options.
- Copy or download the SQL.
Supported features and limitations
Column types are guessed and should be reviewed. Single quotes in values are escaped, but always review generated SQL before running it, and use parameterised queries in applications. Limit: 20,000 rows.
Privacy
Everything you type is processed locally in your browser and is not sent to our servers. No account is needed and there is no watermark.
Frequently asked questions
Which databases does it work with?
Standard INSERT syntax works with most; choose backticks for MySQL.
Are my numbers kept as numbers?
Plain numbers are unquoted; values with leading zeros stay text.
Related tools
- SQL Formatter - Format and beautify SQL queries with uppercase keywords, clause-per-line layout and indented conditions.
- CSV to JSON Converter - Convert CSV to a JSON array of objects (or arrays), with automatic delimiter detection and optional number conversion.
- CSV Viewer - Open and read a CSV, TSV or delimited text file as a table, with row and column counts and delimiter auto-detection.
- CSV Cleaner - Clean a messy CSV by trimming cells, removing empty rows and columns and dropping duplicate rows.
- CSV to Excel Converter - Convert CSV text or a CSV file into a real .xlsx workbook, with a bold header row and numbers stored as numbers.
- Text to Word Document (DOCX) - Turn plain text into a downloadable Word .docx file with your choice of font, size and an optional bold title.