SQL Formatter & Beautifier
Format SQL queries with keyword casing and indentation options.
About the SQL Formatter & Beautifier
Format SQL regardless of whether the statement is valid, with your choice of 2 spaces, 3 spaces, 4 spaces, or tabs. Keywords and identifiers can be upper-cased, lower-cased, or left as-is. The formatter is database-agnostic and handles SELECT, INSERT, UPDATE and DELETE statements for MySQL, SQL Server, Oracle, and ANSI SQL databases.
Frequently asked questions
Which SQL dialects are supported?
The formatter is dialect-agnostic: it formats standard SQL from MySQL, PostgreSQL, SQL Server, Oracle, and similar databases.
Does it format multiple statements?
Yes — statements separated by semicolons are each formatted on their own block.