Format SQL queries online with clean indentation and optional uppercase keywords. Free SQL formatter and beautifier for readable, reviewable queries.
About this tool
Reformat SQL text with indentation and optional uppercase keywords.
How to use SQL Formatter
- Paste a query and select Beautify or Minify.
- Choose indentation and Uppercase keywords as needed.
- Review and copy the result into your SQL editor.
Worked example
Beautify a SELECT query with WHERE and ORDER BY clauses to make its structure easier to scan.
Does this execute or validate a query?
No. It formats text and does not connect to your database.
Does it support every database dialect perfectly?
Specialized syntax can format imperfectly. Verify the result with your database tools before running it.
- SQL Formatter — Beautify SQL queries with uppercase keywords and indentation.
Explore Coding Tools · More practical guides