▥ UTILIZABLE
Tools / SQL Tools

SQL Formatter

SQLを読みやすく。インデントとキーワード表記を統一します。

● Browser-only processing — 入力データをサーバに送信せず、このブラウザ内で処理します。

Oracle / PostgreSQLを主対象とした基本整形です。文字列・引用識別子・コメントの内容は保持します。構文検証や全方言への完全対応は行いません。整形結果は実行前に確認してください。

How to use SQL Formatter

  1. Paste an Oracle or PostgreSQL SQL statement into INPUT.
  2. Choose uppercase or lowercase keywords and a two- or four-space indent.
  3. Select the format button, review the readable SQL in OUTPUT, then copy it.

What SQL Formatter does

This browser-based formatter adds consistent indentation and normalizes SQL keyword casing. Strings, quoted identifiers, and comments remain intact so clauses and nested queries are easier to scan.

Useful for

  • Reviewing long or deeply nested queries
  • Cleaning up SQL generated by applications
  • Sharing consistently formatted SQL with a team

Supported SQL and limitations

Formatting is designed primarily for common Oracle and PostgreSQL statements. This tool formats text; it does not validate SQL, connect to a database, or guarantee support for every vendor-specific construct.

Privacy

Formatting runs in your browser, and the SQL you enter is not sent to an application server. Anonymous page-access analytics are handled separately as described in the Privacy Policy.