Free tool · Charles Belton, BA/BI · Brunswick, ME
SQL formatter
Paste a query to pretty-print it and get a plain-English sketch of tables, joins, and filters before you drop it into a report or a ticket.
Your SQL stays in this browser. Nothing is uploaded or run.
Formatted SQL
What this query does
A clause sketch, not a full parser. It does not execute SQL.
Warnings
How to use
- Paste a SELECT (or other statement) and pick the dialect you write in.
- Format to indent clauses so joins and filters are easier to review.
- Read the sketch for tables and join kinds; treat warnings as a second pair of eyes.
Built by Charles Belton, business analyst and BI consultant in Brunswick, ME.
FAQ
Does this run my query?
No. It formats the text and sketches clauses. Nothing hits a database.
Which dialect should I pick?
PostgreSQL if you are not sure. T-SQL and MySQL are there if that is what you write.
Why is the English sketch off sometimes?
It is a keyword scan, not a full parser. Comments and strings are stripped enough to avoid the obvious false hits. Treat it as a read-along, not a guarantee.
What do the warnings mean?
SELECT * is a warning, not a block. Same for DELETE or UPDATE with no WHERE, and for comma joins or CROSS JOIN.
Need a SQL view of performance?
If the same question keeps getting answered from three exports, write me. I answer my own email.