About this tool
Paste a SQL query and press Format / Beautify to put each clause on its own line with consistent indentation and keyword case. Use Minify / Compact to turn a query into one short line, or Validate to check the syntax for your database dialect.
Features
- Dialects: MySQL, PostgreSQL, SQLite, SQL Server, Oracle or generic SQL.
- Keywords in uppercase, lowercase or as typed.
- Minify removes comments and extra whitespace while keeping strings intact.
- Syntax check with the line and column of the problem where available.
Frequently asked questions
How do I format a SQL query online?
Paste the query, choose your database and press Format / Beautify. The formatted SQL appears in the output panel.
Does it run my SQL?
No. The tool only reads and formats the text. It never connects to a database or runs a query.
Can it find every SQL error?
The check is a best-effort parser. It catches common syntax mistakes, but your database remains the final judge.