Paste messy SQL. Click Format. Clean indentation and capitalization. Copy formatted result.
Readable SQL essential for review and docs. Format instantly without manual work.
Yes, SQL keywords uppercase; table/column names preserved.
Yes, subqueries, CTEs, window functions, CASE.
No, only whitespace and capitalization.
MySQL, PostgreSQL, SQL Server, Oracle, SQLite.
Format and beautify SQL queries with the Toolzie SQL Formatter. Paste messy, minified, or unreadable SQL and get properly indented, keyword-capitalized, readable SQL in one click — supporting MySQL, PostgreSQL, SQLite, and more.
The formatter checks for common syntax issues and highlights errors, but full validation requires running against a database.
Yes — use the Minify option to compact SQL into a single line for use in code strings.
Yes — complex queries with CTEs (WITH clauses), subqueries, and JOINs are all formatted correctly.
MySQL, PostgreSQL, SQLite, T-SQL (SQL Server), and standard ANSI SQL.