CSV & Excel to SQL Converter
Convert CSV, TSV or Excel files into SQL INSERT statements for MySQL, PostgreSQL, SQLite, SQL Server, MariaDB and Oracle. Auto-detects column types, supports batch inserts, upserts and transactions. Runs 100% in your browser no data leaves your device.
Paste or upload your CSV / Excel data, configure the options, then click Generate SQL.
SQL Dialect Reference
Related Tools
Other free developer tools to use alongside the CSV to SQL converter.
Free CSV to SQL Converter Online
TOOLBeans CSV to SQL converter transforms CSV, TSV and Excel spreadsheet data into ready-to-run SQL INSERT statements for any major database. It supports MySQL, PostgreSQL, SQLite, SQL Server (T-SQL), MariaDB and Oracle each with the correct quoting, data type mapping and syntax for that specific dialect.
The tool automatically detects column data types integers, decimals, booleans, dates, timestamps and strings so your CREATE TABLE schema is generated correctly without manual type assignment. Empty cells are automatically converted to NULL values.
Choose between single INSERT statements (one per row), batch inserts (multiple rows per INSERT for better performance), or upsert mode which generates dialect-specific merge statements using ON DUPLICATE KEY UPDATE for MySQL, ON CONFLICT for PostgreSQL, INSERT OR REPLACE for SQLite, and MERGE for SQL Server. All processing happens entirely in your browser no data is uploaded to any server.