Your files stay on your device

CSV to SQL INSERT generator

Turn pasted CSV into INSERT statements: the header row becomes the column list, quotes double per standard SQL, empty cells are NULL by your choice. Statements are generated, never run.

CSV
First row is the header; CSV quoting rules honored
Options
What this tool does not do
  • Generated, never executed. No database connection exists here, and none will.
  • Every value is a quoted string or NULL; the tool cannot know your column types. Cast in the INSERT or fix types on import.
  • Backslash escapes are not assumed: '' doubling only, the PostgreSQL/MySQL-strict dialect. MySQL’s default backslash mode would need a rewrite.
Paste, drop, or type to begin. Everything stays on this device.