SQL Formatter

Format SQL for readability or minify it for compact output.

FAQ

What does this SQL formatter do?

It can pretty-format SQL with readable line breaks or minify queries into a compact one-line statement.

Can I keep SQL keywords uppercase?

Yes. Toggle keyword casing to output uppercase SQL keywords for a more standard style.

Is this suitable for all SQL dialects?

It works well for common SQL syntax and quick readability improvements, though advanced dialect-specific syntax may need manual review.