DevBolt
← Back to tools

SQL Formatter & Beautifier

Format, beautify, and minify SQL queries instantly. Supports SELECT, INSERT, UPDATE, DELETE, CREATE, and more.

About SQL Formatting

This tool formats SQL queries for readability by placing major clauses on new lines and applying consistent indentation. It supports standard SQL syntax including SELECT, INSERT, UPDATE, DELETE, CREATE TABLE, subqueries, JOINs, CASE expressions, and more.

Keyword casing: Choose UPPER, lower, or preserve original casing for SQL keywords. UPPER is the most common convention for readability.

Minify: Removes all unnecessary whitespace and comments, producing compact single-line SQL. Useful for logging, URLs, or reducing payload size.

Supported features: String literals (single/double quotes), backtick-quoted identifiers (MySQL), multi-word keywords (LEFT JOIN, ORDER BY, GROUP BY), inline/block comments, CASE/WHEN expressions, and subqueries with proper parenthesis indentation.