Formatter · BigQuery
Format BigQuery SQL online
Reformat BigQuery queries against BigQuery's own grammar: consistent indentation, aligned clauses and uppercase keywords. Paste one-line or ORM-generated SQL and get structured, reviewable output.
1Paste your BigQuery query into the editor.
2Press Format — or ⌘↵.
3Copy clean, highlighted SQL.
Why format BigQuery?
BigQuery's Standard SQL adds STRUCT and ARRAY types, ARRAY_AGG, backtick-quoted `project.dataset.table` references and date functions like CURRENT_DATE(). The formatter parses BigQuery grammar so fully-qualified table names and array constructs survive formatting.
Ideal for the long analytical queries that come out of the BigQuery console or dbt models.