Paste a CSV into the Quick paste box and the tool writes a CREATE TABLE and the INSERT statements for your table. Pick the database and table name on the SQL tab, then copy the script to run.
Runs entirely in your browser. Your data is never uploaded. Tiếng Việt
You have a CSV and need it in a database quickly, to try queries, to build sample data or to move figures out of a spreadsheet. Hand-writing hundreds of INSERT lines is error-prone, especially with names like O'Brien that contain an apostrophe. The tool doubles the apostrophes, quotes column names the way each dialect expects and merges the rows into one statement. In return the output is always text-typed, with no keys or indexes.
Quick paste box and press Load into table ↵, or use Import file with a .csv file.⚙ Options. Enter the table name, choose the database dialect, and decide whether to include CREATE TABLE or DROP TABLE IF EXISTS.Copy result and paste into your query tool, or Download file for a .sql file.Column names are wrapped in backticks, MySQL style, and O'Brien & Co became 'O''Brien & Co' with the apostrophe doubled. The quantity 120 still sits inside quotes and its column is TEXT, because every value is written as a string.
Code,Brand,Qty,Location
P-100,O'Brien & Co,120,Shelf A
P-101,L'Oréal,45,Shelf B
P-102,Dell,8,Shelf ACREATE TABLE `stock` (
`Code` TEXT,
`Brand` TEXT,
`Qty` TEXT,
`Location` TEXT
);
INSERT INTO `stock` (`Code`, `Brand`, `Qty`, `Location`) VALUES
('P-100', 'O''Brien & Co', '120', 'Shelf A'),
('P-101', 'L''Oréal', '45', 'Shelf B'),
('P-102', 'Dell', '8', 'Shelf A');120 is written as '120'. Many engines convert it on insert into a numeric column, but strict ones do not, so test first.'', not NULL. If you need NULLs, run an update after loading.Qty total works because it is quoted for the dialect, but you must quote it in your own queries. Plain ASCII names are easier to use.Yes. Choose the PostgreSQL / SQLite entry under Database and column names are wrapped in double quotes.
The grid holds only strings, so every value is quoted and leading zeros are never lost. Your database usually converts when loading into a numeric column.
No. Add keys and indexes with ALTER statements after the data is loaded.
Up to 10,000 rows per table. Split anything bigger before converting.
No. The statements are generated in your browser.