How this browser SQL formatter works
This browser SQL formatter uppercases common keywords, normalizes spacing, adds line breaks around major clauses and indents comma-separated lists, joins and nested sections. The syntax-highlighted output makes SELECT lists, JOIN conditions, WHERE filters, GROUP BY aggregates, HAVING filters and ORDER BY rules easier to review.
The formatter keeps quoted strings, identifiers, placeholders and comments visible while changing surrounding whitespace and keyword casing with lightweight text rules. That makes it useful for SQL copied from logs, query builders, database consoles, migrations, tickets and docs, but important literals still deserve review.
SQL dialects differ across MySQL, PostgreSQL, SQL Server, SQLite, Oracle and analytical databases. This page is a lightweight SQL pretty printer for readability, not a database parser, query validator, optimizer or execution-plan tool.