CSV to SQL converter

Load spreadsheet data into a database: paste CSV and get CREATE TABLE and INSERT statements.

Table name

Free · No sign-up · Your files are processed on your device and never uploaded

How to use CSV to SQL

  1. Paste or type…
    1

    Paste or type

    Put your content in the box - or try the example.

  2. Result appears instantly
    2

    Watch the result

    The result updates as you type - choose options above if needed.

  3. TXTCopy / Download
    3

    Download the result

    Ready in seconds. Your file never left your device.

Features

  • Column types (INTEGER, NUMERIC, BOOLEAN, TEXT) detected.
  • Quotes and commas inside values handled.
  • Empty cells become NULL.

Private by design

Everything runs in your browser. Nothing you paste is uploaded, logged or stored.

Questions

Which databases does it work with?

The SQL is standard and works with MySQL, PostgreSQL, SQLite and SQL Server.

More developer tools

All tools →