generate CREATE TABLE and INSERT statements from CSV or JSON

Paste a file, get production-shaped SQL for PostgreSQL, MySQL, SQL Server, or SQLite - with column types suggested from your actual data, not guessed from headers: VARCHAR sized to the longest value, INT vs BIGINT by observed magnitude, DECIMAL precision from real scale, DATE vs TIMESTAMP, NOT NULL only where the file truly has no nulls.

how to use it

  1. Drop your file. The full-file scan reads every column before anything is generated.
  2. Open </> code. Types come from real sizes, ranges, and decimal scales - not from the header names.
  3. Pick your dialect and copy CREATE TABLE, the INSERTs, SELECT, or UPDATE.
  4. Or choose export → sql for the complete INSERT script, streamed over every row.

"CSV" is a loose term here, and paste means paste anything: TSV, semicolon and pipe delimited files, ranges copied from Excel or Google Sheets, SQL client result grids, even tables copied off a web page (they arrive tab-separated) - the delimiter is detected automatically. One delimiter is chosen for the whole file; if a column turns out to carry its own separator inside it, click that column's header and choose split at delimiter to break it into real columns.

every tool in the box

Like every unfckr tool, this runs 100% in your browser: no upload, no servers, no signup, no analytics. A Content-Security-Policy header blocks every programmatic network channel, so not even malicious code could phone home - and you can watch it happen: the privacy page runs six live escape attempts and shows the browser refusing each one.

↑ back to the tool