Skip to content
Input
SQL
Dialects
4 explicit
Runtime
Browser

Format SQL for one explicit database dialect

Validate the selected dialect, then apply readable whitespace and keyword casing without executing the statement.

Local processingNo sign-upNever executed

Format SQL

Inputs stay in this browser tab. Parser-heavy work uses a tighter 256 KiB safety cap.

Formatted SQL

No result is placed in a URL, account, API, or remote log.

What this tool does

Bounded, explicit-dialect processing

Formatting is a presentation task, not a query-safety or correctness proof. Select the dialect explicitly because keywords, quoting, functions, and statement grammar differ.

Dialect selection is required

The formatter never auto-detects a database. The same source can be valid with different meaning across engines, so the selected grammar is part of the result.

Validation and formatting stay separate

Syntax is checked with a dialect parser before formatting. Formatting does not inspect a schema, optimize a plan, resolve names, or prove that a statement is safe to run.

The parser runs locally under byte, statement, AST-node, depth, row, column, diagnostic, and output limits. It never connects to a database or resolves files and URLs.

Primary references

Questions and answers

Related SQL tools