SQL Formatter

Format SQL for many dialects (PostgreSQL, MySQL, SQLite, T-SQL, PL/SQL, BigQuery…).

Runs entirely in your browser

FAQ

Which dialect should I pick?
Pick the one that matches your database — dialect selection affects how reserved words, dollar-quoted strings, and vendor-specific syntax are handled. When in doubt, 'Standard SQL' is a safe default.
Is my query sent anywhere?
No. The sql-formatter library runs entirely in your browser.

Related tools