AI SQL generator — plain English to SQL query
Describe the result you want and get a correct, readable SQL query, with the dialect of your choice. This is a bring-your-own-key AI tool: it works with your Anthropic (Claude) or OpenAI (GPT) API key, which is stored only in this browser and never sent to us to keep. Your text goes to your chosen provider through our server, which never logs or stores your key or your text. It is free — you pay the provider directly for what you use.
How to use it
- Add your Anthropic or OpenAI API key in the key bar (it is saved only in this browser).
- Paste your text and pick any options.
- Press the button — the result comes back from your chosen AI. Copy or Download it.
FAQ
How do I turn a question into SQL?
Describe what you need (for example, top 5 customers by revenue), pick a dialect and press Generate SQL. The AI returns the query and a one-line explanation.
Is my request kept private?
Your API key lives only in this browser's local storage. Each request sends your text and key to your chosen AI provider through our server, which never logs or stores either. We keep no copy.
Which SQL dialects are supported?
Standard SQL by default, plus PostgreSQL, MySQL and SQLite presets. Name any other dialect in your description.
Where do I get an API key?
From your provider: Anthropic (console.anthropic.com) for Claude, or OpenAI (platform.openai.com) for GPT. Paste it into the key bar once and it is remembered on this device until you clear it.
Does it cost anything?
The tool is free. You pay your AI provider directly for the tokens each request uses — usually a fraction of a cent for short text.
Limits
Review generated SQL before running it against a real database, especially writes and deletes. The AI does not see your schema unless you describe it. Unlike our offline tools, this one calls a cloud AI, so it needs a connection and your own key.
Related
Format the result with the SQL formatter, or convert data with CSV-to-SQL.
Your key stays in this browser. Clear it any time from the key bar.