SQL Formatter

Format and beautify SQL queries with configurable indentation, keyword case, and dialect. Powered by sql-formatter locally — your queries never leave the browser.

Processed in your browser · No upload

Loading tool…

Formatting runs entirely in your browser using the sql-formatter library (MIT). No queries are sent to any server.

Ad Slot (tool-sql-formatter)

FAQ

Is my SQL uploaded to a server?
No. The formatting runs entirely in your browser using the sql-formatter library.
Which SQL dialects are supported?
Standard SQL by default, plus PostgreSQL, MySQL, SQLite, BigQuery, T-SQL, MariaDB, PL/SQL, DB2, Redshift, and Snowflake via the dialect selector.