CSV to SQL
Get ready-to-run INSERT statements, with an optional CREATE TABLE that guesses column types, for MySQL, PostgreSQL, SQL Server or SQLite. CSV is plain text with one record per line and values separated by commas (or semicolons and tabs), used by spreadsheets and databases.
🔒 Your files are processed on your device and are never uploaded.
How to use
- 1Paste your CSV data, or open a .csv file. You can also try the sample.
- 2Check the preview and adjust the options if you need.
- 3Copy the SQL or download it as a file.
Frequently asked questions
How do I convert CSV to SQL?
Paste your CSV data, or open a .csv file. You can also try the sample. The SQL result appears instantly; then copy it or download it.
Is my data uploaded?
No. The conversion runs inside your browser, so your data never leaves your device. It works with large files too.
Which databases are supported?
MySQL / MariaDB, PostgreSQL, SQL Server and SQLite. Names and text are quoted the right way for each one, and you can add CREATE TABLE with guessed column types.
More free tools
JSON Formatter & ValidatorFormat, validate and minify JSON.Base64 Encode & DecodeEncode text or files to Base64, and decode Base64.Hash Generator (MD5, SHA-256…)MD5, SHA-1, SHA-256, SHA-384 and SHA-512 of text or files.Regex TesterTest regular expressions with live highlighting.JWT DecoderDecode JSON Web Tokens and check expiry and signature.URL Encode & DecodePercent-encode or decode text and URLs.