developer

SQL Formatter

Paste messy SQL and get it formatted with proper indentation, keyword casing and clause alignment. Supports MySQL, PostgreSQL, SQLite and more. Saves query history.

Formatted SQL appears here
History saved locally

Format SQL queries online

This formatter supports 10 SQL dialects including MySQL, PostgreSQL, SQLite, T-SQL and BigQuery. It handles complex queries with subqueries, CTEs, window functions and JOIN chains — producing consistent, readable output every time.