Instead of Sqruff
Sqruff alternatives
Sqruff combines SQL linting, formatting, automatic fixes, custom rules, and column-level lineage analysis. It supports many dialects, including PostgreSQL, BigQuery, Snowflake, Trino, and SQLite, and can run through VS Code, Zed, other LSP-capable editors, GitHub Actions, Docker, package managers, binaries, or its browser playground. A project `.sqruff` file controls dialect and rule settings. It is free, open source under Apache-2.0, and available across extension, Linux, macOS, self-hosted, web, and Windows environments.
- 1
SQL Formatter
Free plan ExtensionLinuxMac+2JavaScript-based formatting with editor plugins — SQL Formatter is a JavaScript pretty-printing library with placeholder replacement, while Sqruff adds linting, fixes, lineage, and CI integration.
- 2
SQLCheck
Free plan LinuxMacWindowsDetecting SQL anti-patterns by risk — SQLCheck focuses on categorized SQL anti-pattern detection and risk filtering, rather than Sqruff’s formatting, linting rules, and lineage.
- 3
JSQLFormatter
Free plan LinuxMacSelf-hosted+1Grammar-based formatting with rich output — JSQLFormatter parses SQL into an abstract syntax tree, preserves comments, and exports HTML or RTF, unlike Sqruff’s linting-centered workflow.
Open source Visit site - 4
Poor SQL
Free plan Open source APIExtensionLinux+2Offline T-SQL formatting in browser — Poor SQL specializes in locally processed, colorized T-SQL with obfuscation and Microsoft tool plugins, while Sqruff covers broader dialects and linting.
Free plan Visit site - 5
Sleek
Free plan ExtensionLinuxMac+1Simple CLI and VS Code formatting — Sleek is a focused formatter with glob patterns, check mode, and VS Code format-on-save options, without Sqruff’s lineage or linting scope.
- 6
SQLFluff
Free plan APILinuxMac+2Templated ELT linting and dbt — SQLFluff offers more than 70 rules, Jinja templating, and dbt support, while Sqruff’s dbt support is experimental.
- 7
sqlfmt
Free plan APILinuxSelf-hosted+1PostgreSQL formatting and plan comparison — sqlfmt targets PostgreSQL with river-aligned formatting and explain-plan advice and diffs, capabilities Sqruff does not describe.
- 8
pgFormatter
Free plan APILinuxSelf-hosted+1 - 9
PgSanity
Free plan LinuxSelf-hosted - 10
Prettier SQL
Free plan Self-hosted - 11
Primova SQL Formatter & Linter
Free plan Web - 12
Public Tools SQL Formatter
Free plan Web - 13
RegSQL
Free plan Web - 14
sqlfmt
Free plan APIWeb - 15
TSQLLint
Free plan ExtensionLinuxMac+1 - 16
prettier-plugin-sql-cst
Free plan Web - 17
SQL Pretty Printer
Free plan WebWindows - 18
SQL Formatter VSCode
Free plan Extension - 19
SQLint
Free plan Linux - 20
Squawk
Free plan AndroidAPIExtension+6 - 21
SQL Linter by SqlInt
Free plan Web - 22
sql-tools
Free plan Web - 23
Valk Guard
Free plan LinuxMacWindows - 24
SQL Enlight
Free trial APIExtensionSelf-hosted+1
Readers may still want a narrower formatter, anti-pattern detection, broader templating support, or a different editor and delivery model. Sqruff’s dbt support is experimental, and its free plan has no free trial. When switching, weigh whether you need linting alongside formatting, automatic fixes, lineage, CI integration, browser access, or analysis focused on query plans. Dialect coverage, configuration depth, offline operation, input methods, and integrations such as Java, Visual Studio, Vim, or SQL Server Management Studio can also determine which alternative fits your workflow better.