Online tool for formatting SQL queries with keyword line breaks, indentation, and dialect settings.
SQL Formatter is a free online tool for formatting SQL queries with readable line breaks and indentation. Processing runs locally in your browser.
Choose a related tool for the next step.
Data passed between tools is kept only in the current browser session.
SQL Formatter brings SQL queries to readable form: line breaks before SELECT, FROM, WHERE, JOIN, GROUP BY, ORDER BY, LIMIT, and other keywords, plus indentation and chosen keyword case.
Useful for queries from logs, ORM, admin panels, BI, migrations, PostgreSQL, MySQL, SQLite, MSSQL, and generic SQL.
The service formats query text but does not execute SQL, connect to a database, or validate dialect-specific syntax.
Processing runs locally in your browser.