How to use it
- 1Paste your CSV or drop a file onto the input panel.
- 2Adjust the options — the result updates as you type.
- 3Copy the SQL or download it. Drop several files to convert a batch into one ZIP.
How CSV becomes SQL
Both formats are tabular, so the conversion is a faithful re-encoding: the same header, the same rows in the same order, with quoting and escaping rewritten for SQL.
This is the quickest way to load a one-off spreadsheet into a database when you don't have access to the server's file system for COPY or LOAD DATA INFILE.
CSV and SQL, briefly
CSV is the lowest common denominator for tabular data: every spreadsheet, database and import wizard reads it. It has no types and no nesting, and details such as the delimiter, quoting and encoding vary between programs.
SQL INSERT scripts are the most portable way to load rows into a relational database: any client can run them, and they can be reviewed and version-controlled like code.
Questions
Which CSV dialects are supported?
Comma, semicolon, tab and pipe delimiters are detected automatically. Quoted fields, escaped quotes (""), line breaks inside quotes and a UTF-8 byte-order mark are all handled. If your file has no header row, switch that option off and columns are named column_1, column_2, and so on.
How are column types chosen?
Each column is scanned: whole numbers become INTEGER or BIGINT, decimals a floating-point type, true/false a boolean, ISO dates DATE or TIMESTAMP, and everything else VARCHAR or TEXT sized to the longest value. Columns with no empty values are marked NOT NULL. Quotes in text are escaped for the dialect you choose.