SQL Formatter
Format, beautify, or minify your SQL queries.
Indent:
Try an example:
SQL Keywords Reference
SELECTFROMWHEREJOINGROUP BYORDER BYHAVINGLIMITINSERTUPDATEDELETECREATEALTERDROP
Features
- Format - Add proper indentation and line breaks
- Minify - Remove unnecessary whitespace
- Keyword casing - Uppercase or lowercase SQL keywords
- Customizable indent - 2 or 4 spaces
Supported SQL
Works with most SQL dialects including MySQL, PostgreSQL, SQLite, SQL Server, and Oracle. Supports common statements like SELECT, INSERT, UPDATE, DELETE, CREATE, and more.