Simple · Fast · Free
My Favorites
DATA TOOLS
SQL Formatter & Minifier
Format or minify SQL for multiple database dialects.
Preparing the SQL formatter.
About SQL Formatter & Minifier
Format indentation and keyword case for the chosen SQL dialect or minify queries for readability. The tool does not connect to a database or execute SQL.
How to use this tool
- Paste SQL and choose a dialect such as standard SQL, MySQL, PostgreSQL, SQLite, or SQL Server.
- Format or minify, review the result, and copy or download.
Example
Expand a one-line SELECT query to inspect fields, FROM, and WHERE clauses separately.
Does successful formatting prove a query will execute?
No. Formatting does not check database tables, columns, or permissions, and not every dialect extension is supported. Review the statement in its intended environment.
Privacy
Files and content are processed locally in your browser without file uploads. Download the result before closing the page; files must be selected again in a new session.