Input (CSV)
id,name,active
1,Ada,1
2,Linus,0CSV → SQL converts comma-separated tabular data into SQL INSERT statements. The header row supplies the column names, and each data row becomes a VALUES tuple with strings quoted and numbers left bare. It's a fast way to load a spreadsheet export into a relational database without writing repetitive INSERT syntax by hand, and you can point the statements at any table name you choose.
CSV (Comma-Separated Values) is a plain-text tabular format defined loosely by RFC 4180, where lines are rows and commas separate fields. SQL (Structured Query Language) drives relational databases, and INSERT is the statement that adds rows. This converter reads the CSV header and rows and emits portable INSERT statements compatible with MySQL, PostgreSQL, SQLite, and SQL Server.
The main file is the entry point for each run.
Use the Input panel to pipe standard input to your program when it needs data.
Run sends your code to a fresh hosted runtime and streams the result into the output panel.
Your draft stays in this browser, and Share creates a separate snapshot link.
id,name,active
1,Ada,1
2,Linus,0INSERT INTO users (id, name, active) VALUES (1, 'Ada', 1);
INSERT INTO users (id, name, active) VALUES (2, 'Linus', 0);sku,label
A100,"O'Brien's pick"INSERT INTO products (sku, label) VALUES ('A100', 'O''Brien''s pick');id,email,phone
1,[email protected],
2,,555-0102INSERT INTO contacts (id, email, phone) VALUES (1, '[email protected]', NULL);
INSERT INTO contacts (id, email, phone) VALUES (2, NULL, '555-0102');id,product,price
1,Widget,9.99
2,Bolt,0.45INSERT INTO items (id, product, price) VALUES (1, 'Widget', 9.99);
INSERT INTO items (id, product, price) VALUES (2, 'Bolt', 0.45);id,city
1,"Paris, France"
2,TokyoINSERT INTO places (id, city) VALUES (1, 'Paris, France');
INSERT INTO places (id, city) VALUES (2, 'Tokyo');id,name
1,Ada
2,Linus
3,GraceINSERT INTO users (id, name) VALUES
(1, 'Ada'),
(2, 'Linus'),
(3, 'Grace');id,quote
1,"say ""hi"""INSERT INTO notes (id, quote) VALUES (1, 'say "hi"');The editor uses Monaco, the engine behind VS Code, with language-aware editing tools and familiar keyboard controls.
Paste CSV; the header row supplies SQL column names.
Each data row becomes one INSERT ... VALUES tuple.
Strings are quoted; numeric fields are emitted bare.
Point the statements at any target table name you choose.
Output is portable across MySQL, PostgreSQL, SQLite, and SQL Server.
Quoting and escaping are applied so values stay valid SQL.
Rows are converted locally; your spreadsheet data is never uploaded.
Suitable for exports containing private records.
Skip writing repetitive INSERT syntax for spreadsheet loads by hand.
Verify column order matches your table schema before running.
Output
SQL INSERT statements