The best PgSanity alternatives
The rest of Best SQL Linters and Formatters, in this site's order.
It suits developers working with PostgreSQL schema changes who want migration linting locally, in an editor, or in pull request workflows.
It suits independent developers who need local SQL formatting and optional AI assistance across several dialects.
Poor SQL suits T-SQL users who want browser-based formatting, including offline use, or downloadable plugins and bulk formatting tools.
JSQLFormatter suits developers who need to format SQL across the listed dialects or preserve SQL comments during formatting.
Sleek suits developers who want consistent SQL formatting from a command line or VS Code.
SQLCheck may suit developers who want to scan SQL files from a command line on Linux, macOS, or Windows.
It suits teams reviewing SQL in ELT projects, especially those working across multiple dialects or using Jinja and dbt.
It suits developers who need configurable SQL formatting across several dialects and editor or command-line workflows.
Sqruff suits developers who want configurable SQL linting and formatting in editors or CI workflows.
TSQLLint suits people working with T-SQL scripts who want configurable checks and reports on undesirable patterns.
sqlfmt suits PostgreSQL developers who want consistent formatting in a CLI, browser, Go program or editor.
pgFormatter suits developers who want to format PostgreSQL SQL or PL/pgSQL from a console, CGI setup, editor, or pre-commit workflow.
It suits people who want to format and validate SQL in a browser across the listed dialects.
SQLint suits developers working with BigQuery Standard SQL who want command-line or Python linting and formatting.
It suits SQL users who need browser-based formatting and lint checks across several dialects.
This formatter suits people preparing SQL for editors or migrations, especially across supported dialects.