SQL Toolkit
Format, validate, minify, diff, index-advise, and explain SQL — six tools covering readability, correctness, schema changes, and performance. All run entirely in your browser.
How these fit together
SQL Formatter turns a dense, single-line query into something with proper indentation and clause line breaks — the version you actually want to read or review. SQL Query Validator checks for unbalanced parentheses, stray commas, and other structural mistakes before you run it. SQL Minifier does the opposite of formatting — collapsing a query and stripping comments — for when you need it compact instead of readable. And once a query runs but runs slowly, SQL Explain Helper reads a PostgreSQL EXPLAIN ANALYZE plan and points at the actual bottleneck instead of leaving you to parse the tree by hand. When you need to compare two versions of a schema instead of a single query, SQL Diff diffs CREATE TABLE statements column by column and suggests a migration to go from one to the other. And before you even run a query, SQL Index Advisor reads its WHERE, JOIN, ORDER BY, and GROUP BY clauses and suggests a candidate composite index — worth checking against SQL Explain Helper's real EXPLAIN ANALYZE output once you do run it.
SQL Formatter
Beautify SQL queries with proper indentation and clause line breaks.
SQL Query Validator
Check a SQL query for unbalanced parens, stray commas, and other structural mistakes — PostgreSQL, MySQL, and SQL Server quoting all handled.
SQL Minifier
Collapse SQL onto a single line and strip comments.
SQL Explain Helper
Find the actual bottleneck in a PostgreSQL EXPLAIN ANALYZE plan.
SQL Diff
Compare two CREATE TABLE schemas — added, removed, and changed columns and constraints, plus a suggested migration.
SQL Index Advisor
Suggest candidate indexes from a query's WHERE, JOIN, ORDER BY, and GROUP BY clauses — before you've run it.