Code Tower · room 25

SQL Formatter

Format SQL for MySQL, PostgreSQL, SQLite and more.

🔒 Processed in your browser · No upload · No sign-up

Format SQL queries online

Paste a long one-line query from your logs, ORM debug output or a colleague's message and get readable, consistently indented SQL. Choose your database dialect so vendor-specific syntax — PostgreSQL casts, MySQL backticks, T-SQL brackets, BigQuery structs — is understood correctly.

Is my query sent to a server?

No. Formatting runs entirely in your browser with the open-source sql-formatter library, so table names, customer data in literals and connection details never leave your machine.

Does formatting change what the query does?

No — only whitespace and (optionally) keyword casing change. String literals, identifiers and comments are kept exactly as written.