> codebench_TOOL: HomeLOCAL-ONLY⌘K Switch

SQL Formatter

Tool guide

Pretty print / minify SQL

Input: This tool processes input in your browser. Check in Network (opens in a new tab)

Mode:
Dialect:
Indent:
Case:
Input (SQL)
Output (Pretty)
Paste SQL on the left, then press ⌘Enter

Paste your SQL query and get instant formatting with support for 8+ SQL dialects. Features include keyword case conversion (UPPER/lower/preserve), configurable indentation, and minification. Powered by sql-formatter — all processing happens in your browser.

Browse SQL tools

> codebench $Ctrl+Enter Run