πΎ
SQL Query Formatter
Beautify and organize your SQL queries for better readability
SQL Dialect:
π₯ Input SQL
Lines: 0π€ Formatted SQL
Lines: 0Enter SQL to format...
Invalid SQL
βοΈ Formatting Options
Indent Size:
π‘ SQL Formatting Rules
π SELECT Clause
Each column appears on a new line, indented under SELECT.
π JOIN Clauses
JOIN keywords start on new lines with ON conditions indented.
π WHERE Conditions
AND/OR operators start new lines for readability.
π ORDER/GROUP BY
Sorting and grouping expressions each on their own line.