Beautify messy SQL queries with clean multi-level indentation and automated keyword capitalization (SELECT, FROM, WHERE, JOIN, GROUP BY, etc.).
Runs 100% client-side in your browser — your private database queries, table structures, and sensitive filters are never uploaded to any remote server.
Frequently asked questions
Does this tool upload my SQL?
Never. All parsing, indentation, and minification happen entirely within your local browser JavaScript engine.
Which SQL dialects are supported?
Standard ANSI SQL, MySQL, PostgreSQL, SQLite, MariaDB, and SQL Server.
Can I minify SQL to a single line?
Yes — click "Minify" to strip comments and redundant whitespace, ready to embed in an application config or a code literal.
中文说明
将凌乱冗长的 SQL 查询语句格式化为清晰分层的优美代码,自动将 SELECT、FROM、WHERE、JOIN、GROUP BY 等几十个主流关键字转为大写规范。
100% 运行于本地浏览器内存中——绝不向任何外部服务器上传数据,彻底杜绝企业内部数据库结构、表名与敏感查询条件泄露。
常见问题
该工具会上传我的 SQL 吗?
绝不上传。所有分词、缩进排版与压缩均在浏览器本地完成,断网也能正常运行。
支持哪些数据库语法?
支持标准 ANSI SQL,以及 MySQL、PostgreSQL、SQLite、MariaDB、SQL Server 等主流关系型数据库。
可以压缩为单行吗?
可以,点击"单行压缩 (Minify)"即可去除所有注释与冗余空白,生成适合嵌入代码字面量的紧凑语句。