CSV to SQL Converter

Turn CSV data into CREATE TABLE and INSERT statements. Free, no sign-up, your data stays on your device.

🔒 100% private — processing happens in your browser. Nothing is uploaded.

How to convert CSV to SQL

  1. Open a CSV file or paste the data.
  2. Enter the table name and choose the dialect: MySQL/MariaDB, PostgreSQL, SQLite or SQL Server.
  3. Set rows per INSERT and tick CREATE TABLE if you need it.
  4. Press “Convert”, then copy or download the .sql.

Import spreadsheets into a database

Exporting a sheet as CSV and turning it into INSERT statements is the quickest way to load data into a database when you have no import wizard. Column types are guessed from the data, and quotes and special characters are escaped for the chosen dialect.

Grouping many rows per INSERT makes big imports much faster.

Questions and answers

Does it create the table?

Yes, tick CREATE TABLE.

How are column types chosen?

From the values: integers, decimals, dates or text.

Is my data uploaded?

No, it stays in your browser.

Is it free?

Yes, no sign-up.