PG
PRO

CSV / JSON → SQL Generator

Paste CSV or JSON data — generates INSERT, COPY, CREATE TABLE, or UPSERT SQL with auto-detected types, profiling, and duplicate detection.

5 rows|5 columns|1 issue(s)
Preview (first 8 rows)
#idnameemailcreated_atactive
21Alice Johnsonalice@example.com2024-01-15true
32Bob Smithbob@example.com2024-02-20true
43Carol WhiteNULL2024-03-01false
54Dave Browndave@example.com2024-03-10true
65Eve Daviseve@example.com2024-04-01false
Column Types
id:
name:
email:
created_at:
active:

* = manually overridden

ColumnTypeNullsUniqueMinMaxTop valuesIssues
idINTEGER05151, 2, 3
nameTEXT05Alice Johnson, Bob Smith, Carol White
emailTEXT14alice@example.com, bob@example.com, dave@example.com
1 null
created_atDATE052024-01-15, 2024-02-20, 2024-03-01
activeBOOLEAN02true, false
Composite columnname

"name" likely stores composite data (5/5 values contain spaces). Consider splitting into atomic columns (e.g. first_name, last_name).

(8 lines)
-- ℹ 1 null value(s) in 'email' — will insert as NULL

INSERT INTO my_table (id, name, email, created_at, active) VALUES
  (1, 'Alice Johnson', 'alice@example.com', '2024-01-15', TRUE),
  (2, 'Bob Smith', 'bob@example.com', '2024-02-20', TRUE),
  (3, 'Carol White', NULL, '2024-03-01', FALSE),
  (4, 'Dave Brown', 'dave@example.com', '2024-03-10', TRUE),
  (5, 'Eve Davis', 'eve@example.com', '2024-04-01', FALSE);

Encoding: UTF-8 assumed · CSV input