Home/Tools/SQL Formatter

SQL Formatter / Beautifier

FreeMySQLPostgreSQLT-SQLClient-side
SQL Formatter / Beautifier
Formatting Options
Case:
Indent:
Commas:
Lines between:
SQL Input
Paste your SQL below or choose a preset, then click Format.
Query exceeds 1,000 lines — large queries may be slow to format.
Presets:
Formatted Output
0 statements · 0 keywords · 0 lines
Output will appear here…
About This Tool

This formatter uses the sql-formatter library to reformat SQL queries with consistent indentation, keyword casing, and statement separation. It supports 8 major SQL dialects: MySQL, PostgreSQL, SQLite, T-SQL (SQL Server), PL/SQL (Oracle), MariaDB, BigQuery, and Standard SQL.

Runs entirely in your browser. Your SQL is never sent to any server — completely private and instant. Formatting is cosmetic only and does not validate query syntax.

Thông báo hệ thống
Thông tin
Online Tools