CSV to SQL

Turn a CSV into CREATE TABLE and INSERT statements for your DBMS lab or project.

How it works

Creates CREATE TABLE and INSERT statements from a CSV for your DBMS lab or project. Types are guessed from the data and quotes in text are escaped.

Good to know

Common questions

Which SQL does it write?
Standard looking statements that work in most databases, including MySQL, PostgreSQL and SQLite, with small type edits where needed.
Does it protect against SQL injection?
Quotes are escaped for the file you create. Never paste untrusted text into a live database without proper parameters.
Is it uploaded?
No. Everything runs in your browser and nothing leaves your device.

More in Data.