CSV to SQL Converter

Convert CSV files to SQL INSERT statements

Drop your file here or click to upload

Supports CSV, TSV, TXT files up to 100MB

How to Convert

  1. Upload your CSV file
  2. Set the table name
  3. Choose your SQL dialect
  4. Customize column types and constraints
  5. Copy or download the SQL

Features

  • Auto-detect column types
  • Multiple SQL dialects (MySQL, PostgreSQL, SQLite, SQL Server)
  • CREATE TABLE statements
  • Batch INSERT statements
  • Primary key selection

Use Cases

  • Import CSV data into databases
  • Generate database seed files
  • Migrate spreadsheet data to SQL

Frequently Asked Questions

Which SQL dialects are supported?

We support MySQL, PostgreSQL, SQLite, SQL Server, and Oracle syntax.

Need to convert the other way? Try our Sql To Csv