Skip to content
SimpleRows

Generate a CREATE TABLE statement from a CSV

Drop a file and copy a ready-to-run CREATE TABLE statement.

Processed on this device · nothing uploaded

Drop a file to start

CSV, TSV, Excel or JSON · we’ll detect the delimiter and encoding

Processed on this device. Nothing is uploaded.

How to generate a CREATE TABLE statement from a CSV

  1. 01Drop your CSV, Excel, JSON or Parquet file.
  2. 02Choose the database and table name.
  3. 03Copy the SQL or download it as a .sql file.

Writing a schema by hand for a 40-column export is slow and error-prone. SimpleRows samples the file, infers each column’s type (integers, decimals, dates, timestamps, booleans, text) and maps them to your database’s type names. Column names are quoted for the target database, so names with spaces or reserved words work. To load the data too, pair it with CSV to SQL INSERT.

Questions

How are types detected?

From a sample of the rows. If later rows contain other values, widen the type (for example to TEXT) before loading.

Which databases are supported?

PostgreSQL, MySQL, SQLite, SQL Server and DuckDB.

Is my file uploaded to a server?

No. SimpleRows runs entirely in your browser using DuckDB, a database engine compiled for the web. Your file is read from your disk and never sent anywhere, and the tools keep working with Wi-Fi off once the page has loaded.