Formatting is not validation
The formatter changes layout only. It does not check table names or run the query, so test it against your database.
Format SQL queries with clean indentation and consistent keyword case, for MySQL, PostgreSQL, SQL Server, SQLite, BigQuery and more.
Paste one or more SQL statements, separated by semicolons.
Choose your database so its keywords, quotes and operators are recognized, then set keyword case and indentation.
Select “Format SQL” and copy the readable query into your editor, a code review or documentation.
The formatter changes layout only. It does not check table names or run the query, so test it against your database.
Queries often contain table names and customer values. Formatting happens in your browser, and nothing is sent to a server.
Parameters such as ? in MySQL or $1 in PostgreSQL stay as they are when the matching dialect is selected.
Yes. Paste the query, select its dialect and format it locally in your browser. The query is not executed and no database connection is opened. Formatting does not verify table names, permissions or query performance.
The selected dialect may not know a keyword or quote style your database uses. Choose the matching dialect, or Standard SQL for simple queries.
Yes. Separate the statements with semicolons, and the formatter puts a blank line between them.
No. Only whitespace and, if you choose, the case of keywords change. Table names, column names, strings and values keep their spelling.