SQL Formatter
Beautify and format SQL queries for any dialect.
Turn a cramped, one-line SQL query into clean, readable, properly indented SQL. Supports MySQL, PostgreSQL, SQL Server, SQLite, BigQuery, Oracle, and standard SQL. It all runs in your browser, so your queries stay private.
Runs entirely in your browser — nothing is uploaded.
How to use the sql formatter
- 1Paste your SQL.
- 2Choose the SQL dialect.
- 3Format it and copy the clean result.
Frequently asked questions
Which SQL dialects are supported?
Standard SQL, MySQL, MariaDB, PostgreSQL, SQLite, BigQuery, SQL Server (T-SQL), and Oracle (PL/SQL).
Is my SQL sent anywhere?
No — formatting happens entirely in your browser, so your queries are never uploaded.