Beautify SQL Online — Free SQL Beautifier

Beautify SQL queries instantly with dialect support and keyword casing. All processing happens in your browser — no uploads.

Loading…
SQL Beautification
Beautify SQL online.

Features

Format with dialect and keyword casing.

Beautify SQL

Format with dialect and keyword casing.

Basic example

SQL source

SELECT c.id, c.email, o.total, o.created_at FROM customers AS c INNER JOIN orders AS o ON o.customer_id = c.id WHERE c.active = TRUE AND o.status = 'completed' ORDER BY o.created_at DESC LIMIT 50;

Beautified SQL

SELECT c.id, c.email, o.total, o.created_at FROM customers AS c INNER JOIN orders AS o ON o.customer_id = c.id WHERE c.active = TRUE AND o.status = 'completed' ORDER BY o.created_at DESC LIMIT 50;

Options

SQL Dialect
Target dialect for beautify formatting (standard, PostgreSQL, MySQL, SQLite).
Keyword Case
Upper, lower or preserve keyword casing during beautify.
Indent Width
2 or 4 spaces for beautify and unminify output.

Dialect support

Beautify supports standard SQL, PostgreSQL, MySQL and SQLite dialects. Minify uses whitespace stripping — edge cases in T-SQL or BigQuery are out of scope.

FAQ — Beautify SQL

Beautification

Which dialect should I pick?

Match your database engine — PostgreSQL for Postgres, mysql for MySQL, etc.

Minify vs beautify?

Beautify for readability; minify SQL to shrink size.

Looking for converters, encoders, formatters, and minifiers in one place? Developer tools hub Open the curated developer tools catalogue.

Other actions for this language