Pretty-print SQL for Postgres, MySQL and more. Runs entirely in your browser — nothing you paste is sent anywhere.
6 answers to what people ask most about the SQL Formatter.
Paste the query and the formatted version appears on the right, with each clause on its own line and joins and conditions indented.
Yes. It tells the formatter which keywords, quoting and functions to expect, so PostgreSQL features like ILIKE or MySQL backtick names are handled correctly.
Turn off the UPPERCASE switch. Keywords such as select and from are then written in lowercase.
No. Only whitespace and keyword case change. Identifiers, strings and values are left as you wrote them.
The formatter could not parse part of the query, often an unbalanced parenthesis or an unclosed quote. The message shows where it stopped.
Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.
Something not working? Tell us and we'll fix it.
Report an issue