SQL Formatter

Pretty-print, minify, uppercase

Paste SQL to pretty-print it onto clean lines and indented clauses, or minify it to a single compact statement. A real tokenizer handles quoted strings, single and double quoted identifiers, line and block comments, and common clauses like SELECT, FROM, WHERE, JOIN, and GROUP BY. Nothing leaves this page.

Output

    
All tokenizing and formatting happens locally in your browser. The SQL is never sent to any server.