SQL Formatter
Format SQL queries so they’re easy to read.
Questions
Which dialect should I choose?
The database the query is for. Dialects differ in quoting, operators and keywords (like PostgreSQL’s :: casts or SQL Server’s [brackets]), and the right one keeps them intact. Standard SQL works for most simple queries.
Does formatting change the query?
No, only its layout: line breaks, indentation and, if you choose, the case of keywords. Table names, column names and strings are kept exactly as written.
Can it format several queries at once?
Yes. Queries separated by semicolons are formatted one after another, with the blank lines between them you choose.
Is it free? Do I need an account?
It is free to use and there is nothing to sign up for. There are no watermarks and no daily limits.
Missing something, or not working as it should? Tell us