Free browser tool
SQL Formatter
Format common SQL queries with readable keyword breaks and indentation.
Last updated:
SQL formatter
Reflow common SQL queries with readable keyword breaks and indentation.
Free SQL formatter
Paste a query from logs, dashboards, or database tools and make it easier to read before debugging or sharing.
Tool description
Format common SQL queries with readable keyword breaks and indentation for easier debugging and sharing.
Common uses
- Clean up SQL copied from logs, dashboards, or database tools.
- Make SELECT queries easier to scan.
- Reformat one-line SQL before debugging conditions or joins.
How to use SQL Formatter
- 1. Paste a SQL query into the input area.
- 2. Select Format SQL.
- 3. Copy the formatted query.
FAQs
Which SQL dialects are supported?
The formatter handles common SQL keywords and readable spacing, but it is not dialect-specific.
Does it run the query?
No. The tool only reformats SQL text.
Is SQL sent anywhere?
No. Formatting runs in your browser.