Snowflake Formatter

Paste a Snowflake query and get it laid out clause by clause — with Snowflake syntax handled correctly.

Input · drop a file

Output

Snowflake-specific syntax this formatter understands

  • Semi-structured paths like meta:starch::string stay together
  • QUALIFY is laid out as its own clause
  • FLATTEN, LATERAL and $1 stage column references are supported
  • Double-quoted case-sensitive identifiers are preserved

Formatting changes only whitespace and keyword case. What the query does is unchanged. Need another database? The main SQL formatter has 11 dialects, and the SQL minifier squeezes a query onto one line.

Questions

Is this Snowflake formatter free and private?

Yes. It runs in your browser using the open-source sql-formatter library; your query is never uploaded.

Will it uppercase my quoted identifiers?

No. Only keywords change case; identifiers in double quotes are case-sensitive in Snowflake and are left exactly as written.

Does it check my query against my schema?

No — it understands the syntax, not your tables. A nicely formatted query can still reference a column that doesn’t exist.

Related tools