How to Format SQL queries
Format and beautify SQL queries with proper indentation and keyword casing. Supports MySQL, PostgreSQL, SQL Server, and SQLite dialects.
Quick start
SQL Formatter — Format and beautify SQL queries with proper indentation and keyword casing.
Get started in under two minutes:
- Open the tool and provide your input
- Review and adjust settings
- Review the output
- Copy the result
Step-by-step instructions
Follow these steps to get the best results from SQL Formatter:
Open the tool and provide your input
Use the input area to provide your content or data.
Review and adjust settings
Use the settings panel to refine the output. SQL Formatter lets you format and beautify sql queries with proper indentation and keyword casing.
Review the output
Check the result against what you expected. Look for any errors or unexpected output.
Copy the result
Click the "Copy" button to copy the output to your clipboard. The button briefly changes to "Copied!" to confirm the action.
Frequently asked questions
Is SQL Formatter free to use?
Yes — SQL Formatter is completely free with no account or signup required. All core features are available immediately.
Does SQL Formatter work on mobile devices?
Yes — SQL Formatter works on smartphones and tablets through any modern mobile browser. The interface adapts to smaller screens automatically.