Format and beautify SQL queries with proper indentation and keyword capitalization.
Everything you need to know about formatting and fixing SQL online.
A SQL formatter takes raw or minified SQL queries and reformats them with proper indentation, line breaks, and keyword capitalization, making them easier to read and debug.
SQL formatting runs in your browser. See the privacy policy for information about site analytics and data handling.
The formatter supports Generic SQL, MySQL, PostgreSQL, MSSQL, SQLite, and Oracle through the dialect selector in the toolbar.
Fix & Format automatically corrects common SQL errors before formatting — keyword typos, missing spaces around operators, missing semicolons, duplicate semicolons, extra whitespace, and unclosed parentheses.
Minify removes all unnecessary whitespace and line breaks, compressing the query to a single line. Useful for embedding SQL in application code or reducing config file size.
Yes. Since all processing happens in your browser, there are no server limits or timeouts. You can format large SQL files and complex stored procedures directly without any restrictions.
Found a bug? Have a suggestion? We read every message.
✓ Thank you!
We appreciate your feedback and will look into it.