SQL Formatter
Format and prettify SQL queries with proper indentation and keyword casing.
Options
Sample Queries
âšī¸ About SQL Formatter
- Formats SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, DROP, and more
- Keyword casing helps enforce team-wide SQL style conventions
- Works with most SQL dialects: MySQL, PostgreSQL, SQLite, SQL Server, Oracle
- String literals and quoted identifiers are preserved as-is
How to use SQL Formatter
- 1 Paste SQL â Enter or paste your SQL query, even if it's minified or messy.
- 2 Set options â Choose keyword casing and indentation style.
- 3 Click Format SQL â Formatted output appears with clause statistics.
- 4 Copy or download â Use the formatted SQL in your project or documentation.
SQL Formatter runs entirely in your browser â your queries never leave your machine.