plaintools.tools

Turn a CSV into SQL INSERT statements

Paste a CSV and generate MySQL, Postgres, or SQLite SQL in your browser. Nothing is uploaded.

Paste CSV, then generate SQL.

What this tool does

The first row is treated as column names. Each following row becomes an INSERT. Quoted CSV fields, commas inside quotes, and doubled quotes are handled. Conversion is local JavaScript, not a server job.

Related tools

FAQ

Does this CSV to SQL converter upload my file?

No. Parsing and SQL generation run in your browser. The CSV never leaves this page.

What SQL dialects are supported?

MySQL, PostgreSQL, and SQLite. Identifier quoting changes with the dialect. Values are escaped as SQL strings unless they parse as numbers or booleans.

Does the first row have to be headers?

Yes. The first row becomes column names. They are turned into safe SQL identifiers. Duplicate or empty headers get a numeric suffix.

Can I get a CREATE TABLE statement too?

Yes. Check Include CREATE TABLE. Column types are guessed from the first rows: INTEGER, REAL, or TEXT.

Do I need an account?

No account, no upload, no install. Paste CSV and convert it.