SQL Formatter

Format and beautify SQL queries instantly. Supports PostgreSQL, MySQL, SQLite, BigQuery, and standard SQL with configurable case and indentation.

Developer Tools
Ad
Input SQL
Formatted

Common use cases

Frequently asked questions

Which dialects does it support?

Standard SQL, PostgreSQL, MySQL, SQLite, MariaDB, and Google BigQuery. Each dialect has different keywords and syntax — pick the right one for accurate formatting.

Does it run my queries?

No — it only formats text. The SQL is processed in memory on the server (with a 64KB limit) and discarded immediately. Safe for sensitive queries.

How does keyword case work?

UPPERCASE highlights structure (SELECT, FROM, WHERE), preferred by many style guides. lowercase reads more naturally. Preserve keeps your original casing.

Related tools