Advertisement
SQL Formatter – Beautify MySQL & PostgreSQL Queries
TrendingFormat messy SQL queries with proper indentation and keyword capitalization. Supports MySQL, PostgreSQL, SQL Server, Oracle, and SQLite.
SQL Formatter
Beautify and minify SQL — supports PostgreSQL, MySQL, SQLite, BigQuery and more
Beautified · Standard
Formatted SQL will appear here
Paste a SQL query above to begin
What is SQL Formatter?
Transform unformatted SQL into readable code with proper indentation, uppercase keywords, and dialect-aware formatting. Supports MySQL, PostgreSQL, T-SQL, Oracle PL/SQL, and SQLite.
sqlformatterbeautifiermysqlpostgresqldatabase
SQL Formatter Features
Multi-Dialect Support
MySQL, PostgreSQL, SQL Server, Oracle, SQLite.
Smart Indentation
Correct indentation for JOINs, subqueries, and CTEs.
Advertisement
SQL Formatter FAQ
Never — only whitespace and letter casing are modified. Table names, column names, and values are left exactly as-is.