Unformat.online

Format BigQuery SQL Online

Beautify Google BigQuery SQL with proper indentation and keyword formatting. Paste your BigQuery SQL and get clean, readable output instantly — 100% client-side.

Rules:Smart QuotesConverts curly quotes (“” ‘’) to straight quotes. Always active.Non-Breaking SpacesReplaces non-breaking spaces (U+00A0) with regular spaces. Always active.Line EndingsNormalizes CRLF → LF and trims trailing whitespace per line. Always active.Removes invisible zero-width characters (U+200B, U+200C, U+200D) that silently break string comparisons.Strips the Byte Order Mark (U+FEFF) that causes “invalid character” errors in parsers and editors.Removes soft hyphens (U+00AD) from PDFs that show as garbled characters in code editors.Converts mixed tabs/spaces to a consistent indent width. Click to pick a size.Collapses all line breaks into one continuous paragraph. Great for reflowing PDF or email text.Control blank line density. Click to pick Keep 1 or Remove all.Text never leaves your browser
0 characters

BigQuery SQL formatting

Google BigQuery uses Standard SQL with extensions for large-scale analytics. Its dialect includes backtick-quoted project and dataset references like `project.dataset.table`, ARRAY_AGG, STRUCT, UNNEST, analytic functions, and INFORMATION_SCHEMA views.

Using the BigQuery dialect ensures that backtick identifiers, nested repeated fields, and BigQuery-specific functions are formatted correctly without being misinterpreted as standard SQL.

How to format BigQuery SQL

  1. Paste your BigQuery SQL query into the text area above.
  2. The formatter is pre-set to BigQuery dialect. Toggle UPPERCASE keywords as needed.
  3. Copy the formatted output with the Copy button or Ctrl+K.