SQL Formatter
Beautify and standardize SQL queries across many dialects.
How it works
Paste a cramped SQL query and format it with consistent indentation and uppercase keywords. Supports dialects like PostgreSQL, Spark, and BigQuery.
Example: a cramped one-line query is reformatted with uppercase keywords and clean indentation.
Input
Formatted