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
- Check the guessed column types before running them on a real database.
- SQL dialects differ in small ways, so adjust types if your database complains.
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.
ASCII Table
The full ASCII chart with decimal, hex, octal and binary codes. Search by character, number or name.
OPEN →CSV AnalyzerSee what is inside a CSV: each column's type, missing values, unique values, and min, max and average.
OPEN →CSV CleanerTidy a messy CSV: trim spaces, drop empty rows and columns, and even out short rows.
OPEN →