How to use
Use this to format SQL before pasting into VS Code (or to clean up SQL copied from logs/apps).
- Paste SQL into the input box.
- Pick options (indent size, keyword case, line breaks).
- Click Format (or Minify).
- Click Copy Output and paste into VS Code.
FAQ
Does this replace a VS Code SQL formatter extension?
No—this is a quick client-side formatter you can use before pasting into VS Code (or when you can’t rely on extensions).
Will it change my string literals or quoted identifiers?
It keeps quoted strings/identifiers intact and only normalizes layout and keyword casing.
Can it uppercase SQL keywords like SELECT, FROM, WHERE?
Yes—choose UPPERCASE, lowercase, or preserve under Keyword case.
How does it handle AND/OR in WHERE?
If “Break AND/OR” is enabled, it places AND/OR on new lines (best for long filters).
Does it support MySQL, PostgreSQL, SQL Server, and SQLite?
It’s dialect-agnostic for common syntax; very vendor-specific syntax may not format perfectly.
Is my SQL uploaded anywhere?
No—formatting runs in your browser and the tool does not make network requests.
Why does it break lines after commas?
It’s a readability option for SELECT lists and long expressions; you can turn it off.