SQL Formatter
Format and pretty-print SQL queries for MySQL, PostgreSQL, Oracle, SQL Server, BigQuery and more, with keyword case and indent options. In-browser, no upload.
🔒 Your SQL never leaves your browser. Everything runs on this device.
Readable SQL in one click
Paste a query, choose the dialect (Standard SQL, MySQL, PostgreSQL, Oracle, SQL Server, SQLite, BigQuery, Snowflake, Redshift), and press Format. Clauses are aligned and indented for easy reading and review.
Keyword case and indent
Choose UPPERCASE, lowercase or preserved keywords, and 2/4-space or tab indentation to match your team's style.
Private by design
Formatting runs entirely in your browser; your SQL never leaves your device. Copy or download the result.
Frequently asked questions
Which databases are supported?
Standard SQL plus MySQL, MariaDB, PostgreSQL, SQLite, SQL Server (T-SQL), Oracle (PL/SQL), BigQuery, Snowflake and Redshift dialects.
Can it uppercase keywords?
Yes — choose UPPER, lower or preserve for SQL keywords.
Is my query uploaded?
No. It is formatted in your browser and never sent to a server.