Developer

SQL Formatter

Beautify & format SQL queries.

SQL input
Output

This free SQL formatter beautifies and minifies queries for 19 database dialects — MySQL, PostgreSQL, SQL Server, Oracle, BigQuery, Snowflake, Redshift, Spark and more. Control keyword, data-type, function and identifier casing independently, pick your indent width, and choose where AND/OR breaks fall. Export the result as plain SQL or wrapped in a C#, Java, PHP, Python or JavaScript string literal to paste straight into your code.

Related tools