SQL Formatter
Paste SQL or load a .sql file. Keywords, indentation, and comments are formatted locally in your browser with zero server uploads.
ready
Processing runs on your device.
Frequently asked questions
Which SQL dialects are supported?
Standard SQL/PostgreSQL, MySQL, SQLite, and BigQuery, including dialect-specific identifiers and comments.
Are my database queries sent to a server?
No. Formatting runs 100% locally in your browser, keeping internal table names and production queries private.
Are string literals and comments preserved?
Yes. Quoted strings as well as single-line and block comments remain intact during formatting.