SQL Formatter & Beautifier
Format, beautify, or minify SQL queries. Uppercases keywords, aligns clauses, and indents conditions — entirely in your browser.
Loading SQL Formatter…
Frequently Asked Questions
What does the SQL formatter do?▼
The formatter uppercases SQL keywords (SELECT, FROM, WHERE, JOIN, etc.), places each major clause on a new line, and indents columns and conditions for readability. It makes messy or minified SQL easy to read.
What SQL dialects are supported?▼
You can choose MySQL, PostgreSQL, SQLite, or MSSQL from the dialect selector. The dialect label is informational — the formatting rules are applied universally since standard SQL syntax is shared across all major databases.
What does the Minify button do?▼
Minify strips all extra whitespace and newlines from your SQL query, collapsing it into a single compact line. This is useful when you need to embed SQL in code or reduce payload size.
Is my SQL data sent to a server?▼
No. All formatting happens entirely in your browser using pure TypeScript. Your SQL queries are never sent anywhere.
Can I copy the formatted SQL?▼
Yes. After formatting, click the Copy button to copy the result to your clipboard in one click.