Skip to tool
FeuTex · free tools runs in-browser no bloat built by LiMiT

SQL Formatter (VSCode-Friendly)

Paste your SQL, format it into a VS Code-friendly layout, then copy the result back into your editor. Everything runs client-side in your browser.

Category: Data · URL: /tools/sql-formatter-vscode.html
Tip for VS Code: paste the formatted result, then use your editor's own formatting rules consistently (language mode: SQL).
Privacy: runs locally in your browser. No uploads, no tracking scripts.

How to use

Use this to format SQL before pasting into VS Code (or to clean up SQL copied from logs/apps).

  1. Paste SQL into the input box.
  2. Pick options (indent size, keyword case, line breaks).
  3. Click Format (or Minify).
  4. Click Copy Output and paste into VS Code.
Keywords this page targets (natural cluster): sql formatter vscode, format sql in vscode, vscode sql formatter settings, sql pretty print vscode, sql indent formatter, uppercase sql keywords, format select query, sql formatter online, sql beautifier for vscode, sql format on save vscode, sql format commas new line, sql format and or new line, sql formatter without extension, sql query formatter, postgres sql formatter, mysql sql formatter, sql server formatter, sqlite sql formatter, sql formatter copy paste, format nested sql subquery, sql formatter for joins, sql formatter for where clause
Secondary intents covered: Format messy SQL into readable, indented clauses, Uppercase or lowercase SQL keywords consistently, Break SELECT lists onto new lines after commas, Break WHERE conditions onto new lines for AND/OR, Copy formatted SQL into VS Code with one click, Generate a small VS Code settings snippet for consistent formatting habits, Keep strings/comments intact while reformatting, Minify SQL for compact sharing (optional)

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.