SQL Formatter
← All tools
Prettify SQL with indentation, keyword casing, and line breaks. Works entirely in your browser.
Indent:
2 spaces
4 spaces
Tabs
Uppercase keywords
Newline before AND/OR
Newline after commas (SELECT/SET/VALUES)
Prettify
Minify
Clear
Load sample
Input (SQL)
Copy Input
Output
Copy Output
Download .sql