AI SQL Query Generator
Generate SQL from a natural-language question plus your table schema. Schema parser (CREATE TABLE DDL or comma-separated table.col list), NL → SQL pattern matching (SELECT, WHERE, JOIN, GROUP BY, ORDER BY, HAVING), dialect selection (SQLite/PostgreSQL/MySQL), SELECT-only safety guard, syntax validation, query explanation, parameterization helper, EXPLAIN hint, dialect convert, history. Pure-JS engine — optional BYO-key LLM. 100% client-side, schema never uploaded.
Generate SQL from a natural-language question plus your table schema. Schema parser (CREATE TABLE DDL or comma-separated table.col list), NL → SQL pattern matching (SELECT, WHERE, JOIN, GROUP BY, ORDER BY, HAVING), dialect selection (SQLite/PostgreSQL/MySQL), SELECT-only safety guard, syntax validation, query explanation, parameterization helper, EXPLAIN hint, dialect convert, history. Pure-JS engine — optional BYO-key LLM. 100% client-side, schema never uploaded. Everything runs locally in your browser — your data never leaves your device.
How to use
- Enter your input in the tool above.
- Adjust any options to your preference.
- Use the Copy or Download buttons to save the result.
- Everything happens locally — your data never leaves your browser.