Format SQL queries with proper keywords capitalization, indentation, and line breaks. SQL Formatter is a free online tool from the ToolsRift Code Formatters collection. It runs entirely in your browser — nothing to install, no signup, and your data never leaves your device.
The formatter works with standard SQL syntax including SELECT, INSERT, UPDATE, DELETE, JOIN, and common keywords. It handles MySQL, PostgreSQL, and SQL Server syntax.
This tool formats SQL but doesn't fully validate it. It improves readability but won't catch all syntax errors. Test queries in your database.
Yes, it handles nested queries, multiple JOINs, CASE statements, and complex WHERE clauses with proper indentation for each level.