SQL Formatter

Language:

Keywords:

Indent:

Input
Result
How to use
  1. 1.

    Paste your SQL query into the Input panel

  2. 2.

    Select the SQL dialect that matches your database

  3. 3.

    Click Format to pretty-print the query

  4. 4.

    Copy the result from the Result panel

Common uses
  • Cleaning up minified or auto-generated SQL before reviewing it

  • Formatting queries from ORM debug output for readability

  • Standardising keyword casing across a team codebase

  • Quickly checking query structure without running it