CSV to SQL Converter
Convert CSV to CREATE TABLE and INSERT statements for PostgreSQL, MySQL or SQLite. Column types are detected and values quoted for each database.
Loading tool…
How it works
Paste or open a CSV
Paste CSV, open a file up to 5 MB, or drop one on the box. Comma, semicolon or tab is detected.
Pick the database
PostgreSQL, MySQL or SQLite. Check the column types; turn off Detect types to make every column text.
Run it
Copy the SQL or download a .sql file, then run it with psql, mysql or sqlite3.
How are quotes and backslashes written?
A ' in a value is doubled in all three. MySQL also reads a backslash as an escape, so for MySQL C:\path is written C:\\path. PostgreSQL and SQLite keep backslashes as they are.
Why does a zip code like 00123 stay text?
As a number it would load as 123. A column gets a number, boolean or date type only when every value fits it exactly. 2026-02-30 is not a date, so its column stays text.
What happens to headers like select or first name?
Reserved words and names with spaces or capitals are quoted: "select" for PostgreSQL and SQLite, `select` for MySQL. Empty and repeated names are renamed and listed.
Why no DATE type for SQLite?
SQLite has no date type, so dates stay text as written. Its date functions read ISO dates like 2026-11-23.
Is my CSV uploaded?
No. Conversion runs in this tab.
Need the data from a website first?
Browser Use agents open pages in a real browser, including dynamic ones, and return structured data.