‹ Back ✦ AI Chat
CSV→SQL

CSV to SQL

Generate CREATE TABLE and INSERT statements from CSV.

    Runs entirely in your browser. Nothing is sent anywhere.

    How it works

    1. 1Paste or type your text.
    2. 2Choose the options you need.
    3. 3Copy or download the result.

    About this tool

    CSV to SQL: Generate CREATE TABLE and INSERT statements from CSV. Paste your text and the result appears immediately, ready to copy or download. Everything happens locally in your browser — nothing you paste is uploaded or stored.

    Example

    Input

    name,city,age,email
    Ana Silva,Lisbon,31,ana@example.com
    Ben Müller,Berlin,27,ben@example.com
    Carla Gómez,Madrid,45,carla@example.com
    Ben Müller,Berlin,27,ben@example.com
    David Martin,Paris,38,david@example.com

    Output

    CREATE TABLE people (
      name VARCHAR(255),
      city VARCHAR(255),
      age INTEGER,
      email VARCHAR(255)
    );
    
    INSERT INTO people (name, city, age, email) VALUES ('Ana Silva', 'Lisbon', 31, 'ana@example.com');
    INSERT INTO people (name, city, age, email) VALUES ('Ben Müller', 'Berlin', 27, 'ben@example.com');
    INSERT INTO people (name, city, age, email) VALUES ('Carla Gómez', 'Madrid', 45, 'carla@example.com');
    INSERT INTO people (name, city, age, email) VALUES ('Ben Müller', 'Berlin', 27, 'ben@example.com');
    INSERT INTO people (name, city, age, email) VALUES ('David Martin', 'Paris', 38, 'david@exampl…
    How do I use the CSV to SQL?

    Paste or type your text. Choose the options you need. Copy or download the result.

    Is the CSV to SQL free?

    Yes. It is completely free with no sign-up, no usage limits and no watermark.

    Is my data sent to a server?

    No. Everything is calculated locally in your browser. Nothing you enter is uploaded, logged or stored.

    Does it work on my phone?

    Yes. It works in any modern browser on Android, iPhone, iPad, Windows, Mac and Linux — no app needed.