SQL formatter — offline
Readable queries in one paste — formatted on your device, never on a server.
100% private — files never leave your device
SQL
Formatted
How it works
- 1
Pick your SQL dialect and keyword casing.
- 2
Paste the query — formatting is live.
- 3
Copy the formatted result.
Related tools
Frequently asked questions
Are my queries uploaded to be formatted?
No — formatting runs with the open-source sql-formatter library in your browser. Queries often reveal schema and business logic; here they never leave your device.
Which SQL dialects are supported?
Standard SQL plus PostgreSQL, MySQL, SQLite, and BigQuery dialect quirks — pick the dialect above the editor.
Can it change keyword casing?
Yes — choose UPPERCASE or lowercase keywords; identifiers are left untouched.