Three Major Dialects
PostgreSQL, MySQL, and SQLite are supported with correct identifier quoting and boolean literal syntax for each — no manual fix-ups before running the SQL.
500+ fast, free tools. Most run in your browser only; Image & PDF tools upload files to the backend when you run them.
Convert CSV data into INSERT statements for PostgreSQL, MySQL, or SQLite. Optionally emits CREATE TABLE with inferred types.
CSV to SQL converts comma-separated (or tab/semicolon/pipe-separated) data into ready-to-run INSERT statements for PostgreSQL, MySQL, or SQLite. Paste or upload a CSV file, set the table name, pick the dialect, and the tool emits either a single bulk INSERT statement (faster, fewer round trips) or one INSERT per row (easier to filter or roll back individually). Optionally include a CREATE TABLE statement with column types inferred from the actual data — INTEGER for whole numbers, NUMERIC for decimals, BOOLEAN for true/false/0/1 columns, VARCHAR sized to fit the longest value, or TEXT for very long strings. Identifiers are quoted using the conventions of each dialect (backticks for MySQL, double quotes elsewhere) and string values are escaped to prevent SQL syntax errors. Everything runs in your browser, so business data and exports with PII never reach a remote server.
PostgreSQL, MySQL, and SQLite are supported with correct identifier quoting and boolean literal syntax for each — no manual fix-ups before running the SQL.
CREATE TABLE statements get accurate column types (INTEGER, NUMERIC, BOOLEAN, VARCHAR, TEXT) inferred from real values, so the schema fits the data on first import.
Choose a single multi-row INSERT (faster, fewer transactions) or one statement per row (easier to debug, filter, or roll back individually) depending on your import workflow.
Table names and column headers are quoted with backticks for MySQL and double quotes for PostgreSQL/SQLite, preventing collisions with reserved words.
Single quotes inside CSV values are doubled (SQL standard escape), preventing syntax errors and SQL injection from malformed source data.
CSV data — including business PII, customer records, and financial data — is parsed and converted entirely in your browser. Nothing is uploaded or logged.
Input: id,name,age,active 1,Alice,30,true 2,Bob,28,false
Output: CREATE TABLE "my_table" ( "id" INTEGER, "name" VARCHAR(50), "age" INTEGER, "active" BOOLEAN ); INSERT INTO "my_table" ("id", "name", "age", "active") VALUES (1, 'Alice', 30, TRUE), (2, 'Bob', 28, FALSE);
Input: name,city Alice,Paris Bob,Berlin
Output: INSERT INTO `my_table` (`name`, `city`) VALUES ('Alice', 'Paris'), ('Bob', 'Berlin');
Input: k,v foo,1 bar,2
Output: INSERT INTO "my_table" ("k", "v") VALUES ('foo', 1); INSERT INTO "my_table" ("k", "v") VALUES ('bar', 2);