SQL Formatter
Format and beautify SQL — instantly in your browser
Formatted SQL
About SQL Formatter
Paste any SQL query and it is formatted with consistent indentation and keyword casing as you type — no upload, no sign-up. Everything runs locally in your browser, so even sensitive database queries never leave your machine.
Supports multiple SQL dialects including standard SQL, MySQL, PostgreSQL, SQLite, BigQuery, and T-SQL.
FAQ
Is my data sent anywhere? No — formatting happens entirely in your browser using the sql-formatter library.
Which SQL dialects are supported? SQL, MySQL, PostgreSQL, SQLite, BigQuery, and T-SQL (SQL Server).
Does it validate SQL syntax? The formatter normalizes whitespace and keywords; it does not perform full syntax validation.