Developer Tool
SQL Formatter
Paste any SQL query to format it with consistent indentation and keyword casing. Supports PostgreSQL, MySQL, SQLite, T-SQL, and PL/SQL. Runs entirely in your browser.
Options
SQL Input
Examples:
How to use this tool
- 1
Paste your SQL query
Copy raw or hand-written SQL from your editor, query runner, or ORM log and paste it into the input area.
- 2
Choose your dialect and options
Select your database dialect (PostgreSQL, MySQL, SQLite, T-SQL, or PL/SQL), keyword case, and indentation style.
- 3
Format or minify and copy
Click Format to pretty-print for readability, or Minify to compress for production queries. Copy the result to your clipboard.