程式碼工具

SQL 格式化

Format SQL queries, switch database dialects, minify snippets, and copy clean SQL locally.

SELECT
  u.id,
  u.email,
  count(o.id) AS orders
FROM
  users u
  LEFT JOIN orders o ON o.user_id = u.id
WHERE
  u.created_at >= now() - interval '30 days'
GROUP BY
  u.id,
  u.email
HAVING
  count(o.id) > 0
ORDER BY
  orders DESC
LIMIT
  20;

功能亮點

Dialect Options

Format common SQL dialects including PostgreSQL, MySQL, BigQuery, SQLite, and T-SQL.

Case Controls

Choose uppercase, lowercase, or preserved keyword casing.

Indentation

Tune tab width, expression width, and operator newline behavior.

Minify Mode

Collapse whitespace for compact query strings and config values.

Copy Output

Copy formatted or minified SQL directly from the result panel.

Local Workspace

Queries are formatted in the browser with no database connection.

常見問題

No. It only formats text locally and never connects to a database.

Use the dialect closest to your database. PostgreSQL is a good default for common SQL syntax.

Yes. The minify option collapses whitespace while preserving the query text.

持續成長的快速、隱私優先開發者工具集合。所有工具都在瀏覽器中執行,資料不會離開你的裝置。

工具

JSON 解析器JSON Schema 驗證器JSON 轉換器JSON 轉 TypeScriptOpenAPI 檢視器程式碼格式化SQL 格式化cURL 轉換器時間戳轉換器Cron 解析器URL 編碼器QR Code 工具IP 與 CIDR 計算器Gzip 與 Deflate 工具JWT 解碼器JWT 驗簽與 JWK 工具雜湊產生器密碼與 TOTPBase64 編碼器UUID 產生器圖片 metadata圖片壓縮Tiny 圖片壓縮器圖片工具箱 Pro螢幕錄製正則測試器文字 DiffMarkdown 與 Mermaid 預覽色彩與對比工具

法律

隱私權政策服務條款

© 2026 ZPTools. 保留所有權利。