SQL Formatter
Format and beautify SQL queries for readability.
Free online tool. No signup required. All processing runs in your browser.
About this tool
Paste a SQL query to get a formatted version with consistent indentation. Helps with code review and debugging.
What is SQL Formatter?
SQL formatters take minified or messy SQL and add indentation and line breaks so queries are easier to read and debug.
How to use SQL Formatter
- Paste your SQL into the input area.
- Click Format.
- Copy the formatted query.
Examples
Example input
SELECT id,name FROM users WHERE active=1 ORDER BY name
Example output
SELECT id, name FROM users WHERE active = 1 ORDER BY name
FAQ
Which SQL dialect is supported?
The formatter handles common SQL; complex dialect-specific syntax may vary.
Is my SQL sent to a server?
No. Formatting runs in your browser.