The Text Box

SQL Formatter

Format SQL queries with clean indentation and consistent keyword casing.

Result

About this tool

Uses a real SQL tokenizer (sql-formatter), so nested subqueries, JOIN chains and CASE expressions come out readable. Keyword casing is configurable — formatting happens entirely in your browser.