How to format SQL
- Paste your query and choose your database dialect.
- Pick keyword case and indentation.
- Copy or download the formatted SQL.
Your queries are formatted in your browser and never sent to a server.
Beautify or minify SQL for MySQL, PostgreSQL, SQL Server, Oracle, SQLite and more.
Your queries are formatted in your browser and never sent to a server.
No. Only whitespace and keyword case change; the query logic stays the same.
Yes. Separate them with semicolons.
Convert Markdown to clean, sanitized HTML with a live preview. Supports tables and task lists.
Open Tool →