Format and beautify SQL queries online. Uppercase keywords, indent joins and subqueries, choose comma-first style or minify to one line. Works with common dialects.
Paste the query. It is formatted instantly with each clause on its own line.
Yes. Subqueries are indented and CASE blocks are aligned.
No. Only whitespace and the letter case of keywords change; strings and identifiers are preserved.
Be the first to share your experience with this tool — your feedback helps others.