Tidy ad-hoc SQL for reviews and docs, then get a plain-language walkthrough of joins, filters, and rough edges—without leaving the browser.
Your SQL
Formatted
SELECT u.id, u.name FROM users u WHERE u.active = 1 AND u.created_at > '2024-01-01' ORDER BY u.created_at DESC LIMIT 50
Long SQL from ORMs, BI tools, or hand-written reports is hard to read in code review. This page applies opinionated line breaks and indentation so SELECT, FROM, WHERE, joins, and aggregates stand out. Use it before pasting into GitHub, Notion, or runbooks.
The optional Explain with AI step summarizes intent—helpful when onboarding someone to a legacy query. Keep production secrets, internal hostnames, and customer identifiers out of that prompt if your org restricts AI traffic.
We do not embed a full SQL parser for every dialect (PostgreSQL, MySQL, SQL Server, SQLite, BigQuery…). Complex nested expressions, dialect-specific operators, or dollar-quoted strings may need a manual pass after auto-format.
EXPLAIN in your database.Is my SQL saved? Local formatting does not upload your text. AI explain sends the current editor contents only when you click that button, under your Codeground session rules.
Does this replace EXPLAIN ANALYZE? No—the AI gives a narrative; your engine’s plan is authoritative for performance.