Convert CSV to SQL INSERT statements.
Turn a spreadsheet into runnable SQL. CSVTidy generates a CREATE TABLE with inferred column types plus batched INSERT statements, with identifiers quoted for your dialect and quotes properly escaped.
Everything runs in your browser. Nothing is uploaded.
Drop a CSV or Excel file here
Or choose a file — nothing leaves your browser.
Common questions
Are quotes and apostrophes escaped?
Yes. Single quotes are doubled, so O'Brien becomes 'O''Brien'. Identifiers are sanitized to alphanumerics and underscores.
How are column types chosen?
By scanning the column: all-integer becomes INTEGER, all-numeric becomes DECIMAL, anything else becomes TEXT. Review the CREATE TABLE before running it in production.
Why are the INSERTs batched?
Statements are grouped 100 rows at a time. Single huge INSERTs hit packet size limits on MySQL and are harder to debug when one row fails.
Is my file uploaded anywhere?
No. The file is parsed and processed entirely in your browser using JavaScript. It never leaves your device, and nothing is stored on our servers.