Best pgFormatter Alternatives in 2026
Taken from SQL Linters and Formatters, where pgFormatter is listed too, in the same order.
- 1 8.2 Club score
Poor SQL
Poor SQL is a T-SQL formatter that reorganizes and colorizes code according to configurable preferences.
- Free plan
- Open source
- Windows · Linux · Web · Browser extension
- 2 8.1 Club score
Squawk
Squawk is an open-source linter and language server for PostgreSQL migrations and SQL.
- Free plan
- Windows · macOS · Linux · Web
- 3 7.9 Club score
SQLCheck
SQLCheck is a free command-line tool that detects common SQL anti-patterns associated with slower queries.
- Free plan
- Windows · macOS · Linux
- 4 7.8 Club score
SQLFormat.org
SQLFormat.org is a free SQL statement formatter available as a web tool and API.
- Free plan
- Open source
- Web · Browser extension · API · Self-hosted
- 5 7.8 Club score
RegSQL
RegSQL is a web-based SQL workspace for formatting queries and using AI to generate, explain, or repair SQL.
- Free plan
- Web
- 6 7.7 Club score
SQL Pretty Printer
SQL Pretty Printer reformats SQL for readability and can create syntax-colored output for documents.
- Free plan
- Windows · Web
- 7 7.6 Club score
Sqruff
Sqruff is a free SQL linter and formatter written in Rust.
- Free plan
- Windows · macOS · Linux · Web
- 8
7.6 Club scoreSQL Formatter
SQL Formatter is a free, MIT-licensed JavaScript library for making SQL queries easier to read.
- Free plan
- Windows · macOS · Linux · Web
- 9 7.6 Club score
sqlfmt
sqlfmt is a free formatter for PostgreSQL SQL, available as a command-line tool and a browser formatter that runs through WebAssembly without installation.
- Free plan
- Linux · Web · API · Self-hosted
- 10
7.5 Club scoreSQLFluff
SQLFluff is a free, open source SQL linter designed with ELT applications in mind.
- Free plan
- Windows · macOS · Linux · API
- 11 7.5 Club score
TSQLLint
TSQLLint identifies and reports anti-patterns in T-SQL scripts.
- Free plan
- Windows · macOS · Linux · Browser extension
- 12 7.4 Club score
sqlfmt
sqlfmt is an online SQL formatter and validator that also flags misspelled keywords.
- Free plan
- Web · API
- 13 7.4 Club score
JSQLFormatter
JSQLFormatter is a SQL formatter that parses queries into an abstract syntax tree using a grammar.
- Free plan
- Windows · macOS · Linux · Self-hosted
- 14 7.4 Club score
Sleek
Sleek is a free command-line tool for formatting SQL with configurable indentation, keyword casing and blank lines between queries.
- Free plan
- Windows · macOS · Linux · Browser extension
- 15 7.3 Club score
Valk Guard
- Free plan
- Windows · macOS · Linux
- 16 7.1 Club score
SQL Linter by SqlInt
SQL Linter by SqlInt is a free browser-based utility for reviewing SQL queries as you type.
- Free plan
- Web
- 17 7.1 Club score
sql-tools
sql-tools is a free browser toolkit for engineers working with Snowflake, BigQuery, Databricks, PostgreSQL, MySQL, and SQL Server.
- Free plan
- Web
- 18 7.1 Club score
Primova SQL Formatter & Linter
Primova SQL Formatter & Linter is a free web tool for formatting SQL and identifying risky query patterns.
- Free plan
- Web
- 19
7.1 Club scoreSQL Enlight
SQL Enlight is a static analysis and refactoring tool for SQL Server and T-SQL.
- Free trial
- Windows · Browser extension · API · Self-hosted
- 20 7.0 Club score
SQLint
SQLint is a free, MIT-licensed Python parser and linter for Standard SQL (BigQuery).
- Free plan
- Linux