Free SQL Formatter Online
Format your SQL queries for better readability. Uppercase keywords and fix indentation instantly.
Popular
Uppercase Keywords
Smart Indentation
Options:
Input SQL
Formatted Output
How to Use
1
Paste Query
Enter your SQL code or upload a .sql file
2
Select Indent
Choose indentation size (standard is 2 or 4)
3
Format
Click to beautify and fix casing
4
Export
Copy or download the formatted script
Frequently Asked Questions
Does it support all SQL dialects?
It uses standard SQL formatting rules which apply to MySQL, PostgreSQL, SQL Server, and SQLite. Specific dialect syntax might not be perfectly formatted but will remain valid.
Is my database data safe?
Yes. The formatting happens entirely in your browser. We never see your queries or data.