Convert CSV to SQL for PostgreSQL, MySQL, and SQLite

Preview

Paste CSV text, or drop a .csv or .txt file here.

PostgreSQL, MySQL, and SQLite quote identifiers differently and disagree on booleans, conflict handling, and bulk-loading syntax. The generator produces SQL that matches the database you selected instead of a generic middle ground.

This tool converts CSV into INSERT statements for PostgreSQL, MySQL, and SQLite. It does not execute SQL, connect to a database, or replace a full ETL or migration tool.

Empty fields can become NULL or empty strings, and tokens such as NULL or N/A can be treated as NULL. NULL is always emitted as the SQL keyword, never as the string 'NULL'.

The generated CREATE TABLE statement is a conservative starting point based on inferred types. Review the types, lengths, and nullability against your real schema before running it.

Conversion runs in your browser. File contents, column names, table names, and generated SQL are not posted to a server, written to local storage, or included in analytics events.

Guides and articles on the blog for PostgreSQL, MySQL, SQLite.