SQL Formatter
Beautify SQL queries
Loading tool…
About the SQL Formatter
Format and beautify SQL queries online with dialect-aware rules for PostgreSQL, MySQL, SQLite, SQL Server (T-SQL), BigQuery, and standard SQL. Choose uppercase or lowercase keywords and get consistently indented, readable queries from one-line monsters — entirely client-side, so production queries stay private.
How to use
- 1Paste your SQL and pick the dialect.
- 2Choose keyword casing.
- 3Copy the formatted query.
Related Data & Formatting tools
SQL Formatter is part of DevKit — 100 free, privacy-first tools for developers, students, and everyone, built by Minhazul Ashim. Everything runs in your browser; your data never leaves your machine.