AI-Powered Text to SQL
The Text to SQL tool converts natural language descriptions into SQL queries using Google Gemini AI. It is free, requires no account and runs in seconds.
How to Use It
Basic query (no schema):
Type "Show me all users who signed up this month" and get a reasonable SQL query with standard table names.
With your schema (recommended):
Paste your CREATE TABLE statements and the AI uses your exact table and column names, foreign key relationships and data types. Results are precise — users.created_at not a guess.
Explain mode:
Toggle "Explain query" to get a plain-English breakdown of every clause in the generated SQL — useful for learning or reviewing.
Multi-dialect support:
PostgreSQL, MySQL, SQLite, SQL Server and Oracle.
What It Handles
The tool handles complex queries well: JOINs across multiple tables, subqueries, window functions, GROUP BY with HAVING, CTEs (WITH clauses), date arithmetic and more. It adds SQL comments for complex parts.
Privacy
Queries are processed server-side via the Gemini API and are not stored or logged by DevTools.