CSV → SQL Generator
Generate SQL schema and INSERT statements from CSV data: infer column names and types, quote strings safely, and emit batch inserts ready for MySQL, PostgreSQL or generic SQL.
Paste CSV with a header row, pick a table name and dialect. The generator infers INTEGER/REAL/TEXT column types, escapes quotes and produces CREATE TABLE plus batched INSERT rows.
CSV input
INSERT statements
INSERT INTO `imports` (`name`, `email`, `plan`)
VALUES
('Ada Lovelace', 'ada@example.com', 'pro'),
('Grace Hopper', 'grace@example.com', 'free'),
('Ruth, Jr.', 'ruth@example.com', 'team');3 rows × 3 columns · delimiter , · values are escaped locally
Frequently asked questions
How are column types chosen?
Values are scanned per column: integer-looking values become INTEGER, decimals REAL, and everything else TEXT. Empty cells map to NULL.
Can I paste quoted CSV fields?
Yes — it uses the same RFC 4180 parser as the CSV ⇄ JSON tool, so commas, quotes and embedded newlines inside fields are handled.