About SQL Tools
Turn one-line SQL into readable queries, and move SELECT statements between MySQL and Postgres.
SQL rarely arrives readable. Queries copied out of application logs, ORM debug output, slow-query reports, and old codebases tend to show up as a single dense line where the columns, the join conditions, and the filters blur together. SQL Tools gives that query a consistent shape: keywords are uppercased, each top-level SELECT column gets its own indented line, and FROM, WHERE, GROUP BY, ORDER BY, HAVING, and LIMIT each start on a fresh line, with joins broken out the same way. The result is a query you can scan in seconds — which columns, from which tables, filtered how, sorted by what. The converter handles the two differences that bite most often when a query moves between MySQL and Postgres: identifier quoting, where MySQL's backticks become Postgres double quotes and back again, and the LIMIT forms, where MySQL's LIMIT offset, count becomes LIMIT count OFFSET offset in Postgres syntax and reverses cleanly. This is a basic formatter for everyday SELECT queries, built to be predictable rather than clever: it does not rewrite your logic, evaluate your query, or connect to any database, and everything happens locally in your browser.
Who operates this site
SQL Tools (sqltools.codetoolworks.com) is operated by BrightSpan Holdings LLC under the Book AI Studio brand. Book AI Studio builds practical online calculators and tools that give people clear, honest estimates before they make a decision. If you have a question about this site, a correction to suggest, or a problem to report, contact us at admin@bookaistudio.com.
Ready to try it? Open the SQL formatter and dialect converter tool.