Handy Orchard

SQL formatter

Format SQL by dialect without running a query.

Your input

Outputs are cleared when the input changes.

Result

Enter your data or use the example, then run the tool.

Worked example

The sample uppercases SELECT while retaining the exact quoted literal.

Method

sql-formatter tokenizes the chosen dialect and formats whitespace and keyword case locally. No database connection or SQL execution occurs.

Limits

At most 200,000 characters. Stored procedures, custom delimiters and dialect extensions outside the selected grammar are unsupported. Formatting does not prove query correctness.

All work stays in this browser. Each disposable worker is terminated after 2.5 seconds or cancellation. Inputs and processing logs are not sent to analytics.

Sources

Pinned upstream sourceThird-party notices

Related tools

JSON Schema checkerJSON structural diffCron expression explainer

Your inputs stay on this device. Only optional, consented page visits are measured. Input values, files, filenames and processing logs are not sent to Analytics.

When switching languages, text, settings and selected files are temporarily kept on this device. Transfers are removed after restoring; interrupted transfers are cleaned up on a later visit. Inputs and files are never uploaded.