Never changes your code. Each result is checked token by token against your SQL. If anything other than whitespace or keyword case would change, the file stays as it is and a message names the line.
Keeps what other formatters break: $$ and $BODY$ bodies, DELIMITER $$ blocks, N'...' strings, [names with spaces], ` root@localhost , =>, commented-out code, GO and / lines, psql \ commands and COPY ... FROM stdin` rows.
20 dialects, picked for you from the language mode, the file name or the text: PostgreSQL, MySQL, MariaDB, T-SQL, Oracle PL/SQL, SQLite, BigQuery, Snowflake, Redshift, Spark, Hive, Db2, DuckDB, Trino, ClickHouse and more.
Stored procedures indented by block, with BEGIN/END, IF/ELSE, loops, DECLARE, EXCEPTION and package bodies.
Large files work. A 5 MB script took 3.5 to 6 seconds in real VS Code tests (4 threads), with a Cancel button. VS Code stays responsive, because formatting runs outside the editor's process.
ZOVO PRO AVAILABLEOne-time purchase · No subscription
Add Pro tools to SQL Formatter & Format SQL on Save: PostgreSQL, MySQL, T-SQL, PL/SQL (Zovo)
Format All SQL Files in a Folder. Checks every .sql file in a folder with the same safe engine as Format Document, shows how many would change.
Compare Two SQL Files Ignoring Formatting. Formats two SQL files the same way and opens the diff, so only real changes show: a new column, a changed join, a different value.
Yes. SQL Formatter & Format SQL on Save is free and MIT licensed.
How do I install SQL Formatter & Format SQL on Save?
Click "Install in VS Code" above, or search for zovo.zovo-sql-formatter in the Extensions view.
Marketplace README snippet (copy link for VS Code Marketplace)
See full docs & install options at [vscode.zovo.one/extensions/zovo-sql-formatter/](https://vscode.zovo.one/extensions/zovo-sql-formatter/), browse all Zovo VS Code extensions at [vscode.zovo.one](https://vscode.zovo.one/), or explore [Zovo Pro](https://vscode.zovo.one/pro/).
SQLite viewer and editor, a SQLite3 database browser for .db and .sqlite files. Free, no paywall, no sign-in, works offline. Opens files read-only; click Enable editing to change cells and rows, run INSERT or UPDATE, and import a 1M-row CSV. Every change is staged with Undo, and Save makes a backup
NetCDF viewer and HDF5 viewer for .nc, .h5 and .hdf5 files. Browse groups and CF metadata, page through values, plot maps with coastlines, play through time, click a point for its time series and save plots as PNG. Offline, no Python.
Free, no Python, no sign-in, works offline. Opens Parquet files as a fast grid: only the footer and the rows on screen are read, so large files open at once. Exact DECIMAL and INT64 values, INT96 timestamps, nested LIST, MAP and STRUCT, every codec (Snappy, Gzip, Zstd, Brotli, LZ4). Filter, sort, se
Azure Storage explorer for Azure Blob Storage, Queue Storage and Table Storage in VS Code, Cursor and Codespaces, free. Connect with a connection string, account key, SAS URL, Azurite in one click, or Entra ID: no Azure sign-in needed. Browse containers with paging, upload and download big files wit
No Python needed. Schema, column stats, CSV export. Avro viewer, Apache Arrow viewer and Feather viewer that opens any .avro, .arrow, .feather or .ipc file as a fast paged table with search and CSV or JSON export. Free and offline.
Free Oracle SQL and SQL Server client for VS Code, Cursor and Windsurf: run T-SQL and PLSQL, GO and / batches, PRINT and DBMS_OUTPUT, browse tables, cancel queries, streamed CSV export. Azure SQL, Windows (NTLM) login, tnsnames.ora, wallets. Pure JS drivers, fast start, an alternative to heavy deskt