Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo
Instead of pgFormatter

Best pgFormatter Alternatives in 2026

Taken from SQL Linters and Formatters, where pgFormatter is listed too, in the same order.

  1. 1

    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
    8.2 Club score
  2. 2

    Squawk

    Squawk is an open-source linter and language server for PostgreSQL migrations and SQL.

    • Free plan
    • Windows · macOS · Linux · Web
    8.1 Club score
  3. 3

    SQLCheck

    SQLCheck is a free command-line tool that detects common SQL anti-patterns associated with slower queries.

    • Free plan
    • Windows · macOS · Linux
    7.9 Club score
  4. 4

    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
    7.8 Club score
  5. 5

    RegSQL

    RegSQL is a web-based SQL workspace for formatting queries and using AI to generate, explain, or repair SQL.

    • Free plan
    • Web
    7.8 Club score
  6. 6

    SQL Pretty Printer

    SQL Pretty Printer reformats SQL for readability and can create syntax-colored output for documents.

    • Free plan
    • Windows · Web
    7.7 Club score
  7. 7

    Sqruff

    Sqruff is a free SQL linter and formatter written in Rust.

    • Free plan
    • Windows · macOS · Linux · Web
    7.6 Club score
  8. 8

    SQL Formatter

    SQL Formatter is a free, MIT-licensed JavaScript library for making SQL queries easier to read.

    • Free plan
    • Windows · macOS · Linux · Web
    7.6 Club score
  9. 9

    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
    7.6 Club score
  10. 10

    SQLFluff

    SQLFluff is a free, open source SQL linter designed with ELT applications in mind.

    • Free plan
    • Windows · macOS · Linux · API
    7.5 Club score
  11. 11

    TSQLLint

    TSQLLint identifies and reports anti-patterns in T-SQL scripts.

    • Free plan
    • Windows · macOS · Linux · Browser extension
    7.5 Club score
  12. 12

    sqlfmt

    sqlfmt is an online SQL formatter and validator that also flags misspelled keywords.

    • Free plan
    • Web · API
    7.4 Club score
  13. 13

    JSQLFormatter

    JSQLFormatter is a SQL formatter that parses queries into an abstract syntax tree using a grammar.

    • Free plan
    • Windows · macOS · Linux · Self-hosted
    7.4 Club score
  14. 14

    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
    7.4 Club score
  15. 15

    Valk Guard

    • Free plan
    • Windows · macOS · Linux
    7.3 Club score
  16. 16

    SQL Linter by SqlInt

    SQL Linter by SqlInt is a free browser-based utility for reviewing SQL queries as you type.

    • Free plan
    • Web
    7.1 Club score
  17. 17

    sql-tools

    sql-tools is a free browser toolkit for engineers working with Snowflake, BigQuery, Databricks, PostgreSQL, MySQL, and SQL Server.

    • Free plan
    • Web
    7.1 Club score
  18. 18

    Primova SQL Formatter & Linter

    Primova SQL Formatter & Linter is a free web tool for formatting SQL and identifying risky query patterns.

    • Free plan
    • Web
    7.1 Club score
  19. 19

    SQL Enlight

    SQL Enlight is a static analysis and refactoring tool for SQL Server and T-SQL.

    • Free trial
    • Windows · Browser extension · API · Self-hosted
    7.1 Club score
  20. 20

    SQLint

    SQLint is a free, MIT-licensed Python parser and linter for Standard SQL (BigQuery).

    • Free plan
    • Linux
    7.0 Club score

The whole list: SQL Linters and Formatters