SQL Formatter

Format and minify SQL statements, multiple dialects

SQL Formatter is a free online Developer tool. Format and minify SQL statements, multiple dialects Related terms: sql · format · beautify · pretty · 格式化. Use it on this page without signing in.

Help

使用说明

  1. 在输入框粘贴 SQL 语句
  2. 选择方言与缩进风格,点击「格式化」或「压缩」
  3. 关键字自动大写、换行缩进,便于阅读
  4. 结果可一键复制

常见问题

  • 数据处理安全吗? 格式化全部在浏览器本地完成,不上传 SQL
  • 支持哪些方言? 常见 MySQL / PostgreSQL / Oracle / SQL Server 等关键字
  • 格式化报错? 请检查 SQL 语法是否完整正确

More Developer

View all

FAQ about SQL Formatter

What can SQL Formatter do?

SQL Formatter is a Developer tool. Format and minify SQL statements, multiple dialects You can finish the job on this page.

Who should use SQL Formatter?

Anyone handling sql · format · beautify · pretty · 格式化 who does not want to install desktop software can use SQL Formatter in the browser.

Is SQL Formatter safe? Is my data uploaded?

This tool runs in your browser. We do not collect the content you enter into SQL Formatter just because you used it.

What similar tools exist?

Related tools in the same Developer group are listed at the bottom of this page.