Skip to main content
Back to tools

SQL Formatter

Format and beautify SQL queries with dialect support

About SQL Formatter

SQL Formatter lets you format and beautify sql queries with dialect support.

Category: Text.

Frequently asked questions

What SQL dialects are supported?

Standard SQL, PostgreSQL, MySQL, SQLite, T-SQL (SQL Server), and BigQuery. The formatter applies dialect-specific keyword handling and quoting conventions.

Does formatting change query behavior?

No. Formatting only affects whitespace, indentation, and keyword capitalization. The resulting query is semantically identical to the input.

Should keywords be uppercase or lowercase?

Both are valid SQL. Uppercase keywords (SELECT, FROM, WHERE) are a long-standing convention that improves readability by visually separating keywords from identifiers. Some modern style guides prefer lowercase.

Related tools