Guide

THE TOOLBOX / DATA & DATABASE UTILITIES

Format & minify SQL,
across 6 dialects locally.

Beautify single-line ORM logs, indent CTEs and JOINs, or minify SQL statements right in your browser—with zero schema uploads.

420 / 500,000 UTF-16 code units · 420 UTF-8 bytes

1 stmt · 444 B

DIALECT REFERENCE

Supported SQL dialects & special syntax preservation.

SQL DialectPreserved SyntaxCLI Equivalent
PostgreSQL::type, ->>, @>, $$body$$pg_format -s 2
MySQL / MariaDB`table`.`col`, # commentssqlfluff --dialect mysql
BigQuery / Snowflake`project.dataset.table`, QUALIFYsqlfluff --dialect bigquery
SQL Server (T-SQL)[dbo].[Orders], TOP (N), @paramsqlfluff --dialect tsql

1. Zero Schema Leakage

Database queries reveal table names, customer filters, and internal business logic. Formatting runs 100% locally in your browser.

Frequently Asked Questions

Does formatting SQL expose my table names or schema?

No. All SQL tokenization, dialect formatting, keyword casing, and minification run 100% locally in your browser with zero network requests.

Which SQL dialects are supported?

PostgreSQL (including :: typecasts, dollar-quoted strings, and -> / ->> / @> JSONB operators), MySQL / MariaDB, SQLite, Google BigQuery, Snowflake, and Microsoft SQL Server (T-SQL).

How do I minify a multi-line SQL query into one line?

Switch the output toggle from Beautify to Minify. It strips -- line comments and /* ... */ block comments while collapsing extra whitespace outside quoted string literals.

Should SQL keywords be uppercase or lowercase?

Most SQL style guides recommend UPPERCASE for reserved keywords (SELECT, FROM, LEFT JOIN, WHERE) and snake_case for table/column identifiers so queries scan cleanly in code reviews.

Does it preserve CTEs (WITH clauses) and multi-table JOINs?

Yes. Common Table Expressions, nested subqueries, CASE WHEN blocks, and JOIN conditions are indented cleanly onto separate lines.