About SQL Formatter
Format and beautify SQL queries with customizable indentation and keyword casing — paste messy SQL, get clean output, all in your browser.
How to use SQL Formatter
- 1Paste your SQL query into the input area.
- 2Toggle 'Uppercase keywords' to capitalize SQL keywords (SELECT, FROM, WHERE, etc.).
- 3Set the indent size for nested clauses.
- 4Click 'Format' to beautify the SQL.
- 5Copy the formatted output.
Tips
- Uppercase keywords is the most common SQL convention — it makes queries easier to scan.
- Format complex queries before code review to make them readable and catch logic errors.
- Use 2-space indentation for compact queries and 4-space for deeply nested subqueries.
OneKitTools TeamUpdated 2.21.4