SQL Formatter
Turn a one-line query into readable SQL, with the keywords lined up.
ブラウザ内で動作無料 · 登録不要
SQL Formatter について
Paste a query and get it back on sensible lines: each major clause starts a new line, joins and conditions are indented, and the keywords can be put in capitals. Strings and quoted names are left exactly as they were. Useful for a query pulled out of a log or an ORM.
このツールはブラウザ内で動作するので、ファイルが端末から出ることはありません。
SQL Formatter の使い方
- Paste your SQL.
- Choose whether keywords should be in capitals.
- Copy the formatted query.
質問
Which dialects work?
The common clauses of MySQL, PostgreSQL, SQLite and SQL Server all format fine. It lays the query out; it does not parse or validate it.
Will it change my query?
Only the spacing and the case of keywords. Text inside quotes is never touched.
Can it handle a very long query?
Yes, though deeply nested subqueries come out flatter than a hand-written layout would be.
関連ツール
- Epoch Converter – Convert a Unix timestamp to a date and back, in your time, IST and UTC.
- Colour Contrast Checker – Check whether a text and background pair passes WCAG contrast rules.
- Lorem Ipsum Generator – Make placeholder text by paragraphs, sentences or words.
- JSON 整形・検証 – JSON の整形、圧縮、検証。エラーの行と列を正確に表示します。
- 文字数・単語数カウント – 単語数、文字数、文数、段落数を数え、読了時間や頻出キーワードも表示します。
- 大文字・小文字変換 – テキストを大文字、小文字、タイトルケース、camelCase、snake_case などに変換します。
- パスワード生成 – 強力なランダムパスワードを作成。長さと文字種を選び、強度も確認できます。
- ハッシュ・UUID 生成 – UUID と、テキストやファイルの MD5、SHA-1、SHA-256、SHA-384、SHA-512 ハッシュを生成します。