SQL Formatter

Format and beautify SQL queries online. Supports MySQL, PostgreSQL, SQL Server, Oracle, SQLite, BigQuery, and more.

0 lines
0 lines

About SQL Formatting

SQL formatting transforms dense, single-line queries into readable, indented code with proper keyword alignment. This is essential for code reviews, documentation, debugging complex JOINs, and maintaining consistent coding standards across teams.

This formatter supports all major SQL dialects: MySQL, PostgreSQL, SQL Server (T-SQL), Oracle PL/SQL, SQLite, BigQuery, Amazon Redshift, and Snowflake. It handles subqueries, CTEs, window functions, and multi-statement scripts. Powered by the sql-formatter library, running entirely in your browser.