Menu

Browse utilities

developer

SQL Formatter

Format, minify, and copy SQL queries for cleaner reading and easier debugging.

SQL Formatter

Format, minify, and copy SQL queries for cleaner reading and easier debugging.

Input length

182

Output length

194

Output lines

10

Note

This formatter is lightweight and works well for common SQL. For advanced dialect-specific formatting, you can later swap the formatter function with a package like sql-formatter.