SQL Query Beautifier

Format SQL with consistent keyword case and line breaks, leaving string literals untouched.

Why use this tool?

Format SQL queries with consistent keyword case and one clause per line so they're easy to read and review. String literals and comments are never changed.

How to use it

  1. Paste your SQL.
  2. Click Format Query.
  3. Copy the formatted SQL.