Short answer: paste the query, pick the dialect, read the result. The summary reports statements and lines; nothing is executed and nothing is validated.
What “formatted” means here
Keywords are cased as you asked, clauses break onto their own lines, and continuation lines are indented by the width you chose. Strings, comments and quoted identifiers are carried through unchanged, which is the whole reason this usessql-formatter rather than a chain of regular expressions.
What it will not tell you
- Whether the query runs. Formatting is not parsing.
- Whether the plan is sane. That needs
EXPLAIN. - Whether the dialect is right. Pick PostgreSQL and the MySQL backticks are just text — the formatter will not complain.
Reviewing a migration? Paste both versions into the text diff after formatting, so the diff shows semantic changes rather than indentation noise.