Paste messy or minified SQL to instantly format it with proper indentation, keyword capitalization, and readable structure.
Writing clean, readable SQL queries is essential for database development, code reviews, and documentation. This free SQL formatter automatically indents your SQL, capitalizes all reserved keywords (SELECT, FROM, WHERE, JOIN, etc.) and structures complex queries for maximum readability.
SELECT, FROM, WHERE, JOIN, GROUP BY, ORDER BY, HAVINGThis tool formats standard SQL that works across SQL Server (T-SQL), MySQL, PostgreSQL, SQLite, and Oracle.