SQL Formatter
Pretty-print SQL queries by placing keywords on new lines.
Processed locally in your browser whenever possible
Input
Output
How to use SQL Formatter
Paste a SQL query and press Format to place major keywords such as SELECT, FROM and WHERE on their own lines.