Developer tools
SQLite statement generator from JSON records
Generate SQLite CREATE TABLE, INSERT or SELECT statements for one table from flat JSON records, with quoted identifiers and numbered parameters.
Choose CREATE, INSERT or SELECT. Edit the applicable JSON settings; other operation settings are ignored. Calculate, then download SQL and, when present, its exact ordered parameter JSON. Multiline settings are retained as exact JSON parts in downloadable reports.
Result
Method:
SQLite only; generated code is not executed. Use SQL and its separate parameter list together in a driver. SELECT: one table, known columns or *, DISTINCT, up to 20 conditions with AND/OR, one sort column, limit 1–1000 and offset 0–1000000. Operators: equals, not equals, greater/less than (also inclusive), LIKE, IS NULL, IS NOT NULL, IN. LIKE uses SQLite wildcard semantics, no Unicode case-fold promise. IN needs 1–16 non-null scalars; use IS NULL for null. INSERT: 1–16 flat records, 1–8 same scalar columns, up to 128 parameters. CREATE infers types or accepts INTEGER, REAL, TEXT, NUMERIC, BLOB overrides, one primary key, NOT NULL, UNIQUE and scalar DEFAULT. Defaults are literals even in parameter mode. No joins, aggregates, raw fragments or strict typing. Each input 2000/output 3500 units, combined report 7600; safe JavaScript numbers.
Decimal results are approximate. Inputs stay in this browser tab.
How it works
Bounded SQLite construction with quoted identifiers, explicit numbered parameters or literals, selected conditions/order and column constraints. SQLite only; generated code is not executed. Use SQL and its separate parameter list together in a driver. SELECT: one table, known columns or *, DISTINCT, up to 20 conditions with AND/OR, one sort column, limit 1–1000 and offset 0–1000000. Operators: equals, not equals, greater/less than (also inclusive), LIKE, IS NULL, IS NOT NULL, IN. LIKE uses SQLite wildcard semantics, no Unicode case-fold promise. IN needs 1–16 non-null scalars; use IS NULL for null. INSERT: 1–16 flat records, 1–8 same scalar columns, up to 128 parameters. CREATE infers types or accepts INTEGER, REAL, TEXT, NUMERIC, BLOB overrides, one primary key, NOT NULL, UNIQUE and scalar DEFAULT. Defaults are literals even in parameter mode. No joins, aggregates, raw fragments or strict typing. Each input 2000/output 3500 units, combined report 7600; safe JavaScript numbers. Multiline settings are retained as exact JSON parts in downloadable reports.
Worked example
Own two-record example; numbered parameter order remains explicit.
Frequently asked questions
How do I generate SQLite INSERT statements from JSON?
Choose INSERT, enter 1 to 16 flat JSON records with the same 1 to 8 scalar columns and calculate. The generator writes one INSERT with numbered placeholders such as ?1 and ?2 and a separate parameter list, up to 128 parameters.
Can the SQLite generator create a CREATE TABLE statement?
Yes. CREATE infers column types or accepts INTEGER, REAL, TEXT, NUMERIC and BLOB overrides, with one primary key, NOT NULL, UNIQUE and a scalar DEFAULT. Defaults are written as literals even in parameter mode.
What SELECT queries can the SQLite statement generator build?
SELECT works on one table with known columns or *, optional DISTINCT, up to 20 conditions joined with AND or OR, one sort column, a limit of 1 to 1000 and an offset of 0 to 1000000.
Which comparison operators are supported in the generated WHERE clause?
Equals, not equals, greater and less than (also inclusive), LIKE, IS NULL, IS NOT NULL and IN. IN needs 1 to 16 non-null scalars, and LIKE follows SQLite wildcard semantics without a Unicode case-folding promise.
How do I use the parameters produced by the SQLite generator?
Pass the SQL and its separate parameter JSON together to your SQLite driver. The parameters are listed in placeholder order, for example Example, 28, Sample, 31 for two records.
Does the SQLite statement generator support joins or aggregates?
No. Joins, aggregates, raw SQL fragments and strict typing are not supported, and the generated code is never executed by the tool.
What size limits apply to the SQLite generator?
Each input may have 2000 units and each output 3500 units, with 7600 for the combined report. An optional own UTF-8 JSON file may be up to 8 KiB.