Paste a SQL query to format it with uppercase keywords and clean line breaks. Works with SELECT, INSERT, UPDATE, DELETE, and DDL statements.
SQL is case-insensitive for keywords, but uppercasing them (SELECT, FROM, WHERE) is a widespread convention that visually separates SQL structure from table and column names. Each major clause starts on its own line. Conditions after WHERE are indented by two additional spaces. These conventions make complex queries much easier to review and debug.
This formatter handles standard SQL keywords and works with queries from PostgreSQL, MySQL, SQLite, SQL Server, and Oracle. It does not understand dialect-specific syntax like PostgreSQL's :: cast operator or SQL Server's TOP clause placement, but it formats them without breaking the query.