Converter Platform

Convert CSV to SQL

Convert CSV files directly to SQL INSERT statements with automatic type inference for CREATE TABLE. Supports MySQL and PostgreSQL dialects, batch inserts, and DROP TABLE IF EXISTS.

Input (CSV)
61 chars · 4 lines
Output (SQL)
Ctrl+Enter: ConvertCtrl+Shift+C: CopyCtrl+Shift+S: Download

CSV to SQL Options

Customize the conversion output using these format-specific options. Set them in the Options panel above or pass them in the API options object.

OptionDescriptionValues
delimiterCSV field delimitercomma, semicolon, pipe
table_nameSQL table namestring (default: data)
dialectSQL dialect for identifier quotinggeneric, mysql, postgres
include_createInclude CREATE TABLE with type inferencetrue / false
sql_drop_tableAdd DROP TABLE IF EXISTS before CREATEtrue / false

Frequently Asked Questions

Related Converters

CSVJSONCSVXMLCSVYAMLCSVNDJSONCSVTSV

View all converter combinations →