Make messy SQL readable
Paste any SQL query, from a one-line monster copied from a log to a long report query, and get it neatly laid out: each clause on its own line, columns listed one per line, JOINs and their ON conditions lined up, AND/OR conditions indented, CASE statements and sub-queries nested clearly.
Safe by design
After formatting, the tool compares the original and formatted SQL piece by piece and confirms that only spaces, line breaks and keyword capitals changed. Your table names, column names, strings and numbers are never touched.
Works with
MySQL, SQL Server (T-SQL), PostgreSQL, SQLite, Oracle and most other SQL dialects, including comments, quoted names like [Order Date] Or `order date`, and Postgres casts like ::date.