You have a spreadsheet export and a database table to fill. Import wizards differ by tool and often choke on quotes or encodings. A plain SQL script runs anywhere.
The first row gives the column names. Column types are guessed from the data: whole numbers become INTEGER, decimals REAL, dates in YYYY-MM-DD form DATE, the rest TEXT. Empty cells become NULL, and quotes in the data are escaped.
How to use the CSV to SQL tool
- Paste CSV or open a file.
- Enter the table name and pick your database.
- Copy the SQL or download a .sql file.
Popular uses
- Seeding a development or test database
- Loading a lookup table from a spreadsheet
- Moving data between systems that share nothing but SQL
Tips for the best result
- One INSERT with many rows loads much faster than thousands of single statements.
- Check the guessed types. A postcode column of digits is typed INTEGER and would lose leading zeros.
Quick facts
| Price | Free |
|---|---|
| Works with | CSV → SQL |
| Where it runs | In your browser, on your device |
| Account | Not needed |