Skip to content
Toolbento

CSV to SQL converter

Turn CSV into SQL INSERT statements, with an optional CREATE TABLE, for PostgreSQL, MySQL and more.

Everything stays on this device

CSV to SQL converter runs in your browser. The text and files you add are worked on by this device and are never uploaded, to us or to anyone else.

  • No uploads. The page is blocked from sending data to any other server.
  • No account, cookies, ads or tracking.
  • Fonts and scripts come from toolbento.app itself, so the page makes no requests to other companies.
  • Closing the tab clears your text and files from memory.

Read the full details on the privacy page.

Database
Database

Missing a feature or found a bug in CSV to SQL converter? Tell me on X (@_andrewtran) or by email.

How to use CSV to SQL converter

  1. Paste CSV with a header row in the input pane.
  2. Set the table name and choose your database.
  3. Copy the SQL or download it as a .sql file.

Questions and answers

Is my data sent anywhere?

No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.

How are values typed?

A column where every value is a number is written bare. Everything else is quoted, and empty cells become NULL. Values with a leading zero, such as postcodes, stay text.

Which separators work?

Commas, semicolons, tabs and pipes. The one used most in the header row is picked for you.

Esc

Loading tools