SQL Formatter & Minifier

Beautify or minify SQL queries. Supports major SQL keywords and nested queries.

About SQL Formatting

SQL formatting makes complex queries readable by adding proper indentation and line breaks around keywords like SELECT, FROM, WHERE, JOIN, ORDER BY, and GROUP BY. Minifying does the reverse — compresses SQL into a single line.