🗄️

SQL Formatter

Online SQL formatter — beautify or minify SQL with keyword uppercase, custom indentation. Supports MySQL, PostgreSQL and standard SQL. Fully local.

Indent

❓ FAQ

Why format SQL?

Formatted SQL is easier to read, review and debug — especially for complex multi-table joins or nested subqueries.

Which SQL dialects are supported?

The formatter is compatible with standard SQL, MySQL and PostgreSQL syntax, covering keywords like SELECT, JOIN, WHERE, GROUP BY, HAVING and ORDER BY.

When is SQL minification useful?

Minifying SQL to a single line reduces payload size — useful when embedding SQL in config files, logs or API requests.

Is my SQL data sent to a server?

This tool runs entirely in your browser. Your SQL is never uploaded anywhere, so it is safe to use with sensitive data.