Best SQL Linters and Formatters in 2026

In short: Squawk is ranked #1 of 26 as of 4 October 2026, ahead of sqlfmt and pgFormatter. The best-ranked option with a free plan is sqlfmt.

SQL linters and formatters can help you apply conventions and check queries as part of a development workflow. Compare automatic fixes, custom rules and configuration files, then consider CI/CD integration and editor extensions for how each tool fits your process. Supported SQL dialects are another key comparison point; free plans and paid-from pricing provide cost context. Sqruff starts the ranking, with pgFormatter and TSQLLint among the next entries, followed by SQLFluff. sqlfmt, Sleek, Prettier SQL and SQL Enlight also appear near the top. Weigh the dialects, editor support and degree of configuration listed for each option against the way you work with SQL.

26 SQL linters and formatters ranked on what their makers publish — plans and prices, free tiers, platforms and the facts on their own pages.

26ranked
9free plans on this page
4 Oct 2026last checked

Recognised 40% · Phone app 26% · Documented 20% · Free plan 14% of the score

  1. 1 Squawk iPhone + Android RecognisedPhone appDocumentedFree plan 7.3 Supported SQL dialects: PostgreSQLAutomatic fixes: NoCustom rules: No
  2. 2 sqlfmt No phone app RecognisedPhone appDocumentedFree plan 6.4Free Supported SQL dialects: PostgreSQLAutomatic fixes: Yes
  3. 3 pgFormatter No phone app RecognisedPhone appDocumentedFree plan 6.3Free Supported SQL dialects: SQL-92, SQL-99, SQL-2003, SQL-2008, SQL-2011, PostgreSQL; works with other databasesAutomatic fixes: Yes
  4. 4 Poor SQL No phone app RecognisedPhone appDocumentedFree plan 6.3Free Supported SQL dialects: T-SQLAutomatic fixes: YesCustom rules: No
  5. 5 Sleek No phone app RecognisedPhone appDocumentedFree plan 6.3Free Supported SQL dialects: PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, OracleAutomatic fixes: YesCustom rules: No
  6. 6 SQLint No phone app RecognisedPhone appDocumentedFree plan 6.3Free Supported SQL dialects: Standard SQL (BigQuery)Automatic fixes: Yes
  7. 7 Sqruff No phone app RecognisedPhone appDocumentedFree plan 6.3Free Supported SQL dialects: ansi, athena, bigquery, clickhouse, databricks, db2, duckdb, exasol, greenplum, hive, mariadb, materialize, mysql, oracle, postgres, redshift, snowflake, sparksql, sqlite, starrocks, teradata, trino, tsql, verticaAutomatic fixes: YesCustom rules: Yes
  8. 8 TSQLLint No phone app RecognisedPhone appDocumentedFree plan 6.3Free Supported SQL dialects: T-SQL (Transact-SQL)Automatic fixes: YesCustom rules: Yes
  9. 9 prettier-plugin-sql-cst No phone app RecognisedPhone appDocumentedFree plan 5.3 Supported SQL dialects: SQLite, BigQuery, PostgreSQL, PL/pgSQL, MySQL, MariaDBAutomatic fixes: Yes
  10. 10 SQL Enlight No phone app RecognisedPhone appDocumentedFree plan 5.3 Supported SQL dialects: T-SQLAutomatic fixes: YesCustom rules: Yes
  11. 11 SQL Pretty Printer No phone app RecognisedPhone appDocumentedFree plan 5.3 Supported SQL dialects: 30+; SQL Server, Oracle, MySQL, PostgreSQL, Snowflake, BigQueryAutomatic fixes: Yes
  12. 12 SQLCheck No phone app RecognisedPhone appDocumentedFree plan 5.3 Supported SQL dialects: Microsoft SQL Server, MySQL, Oracle, PostgreSQL, SQLite3Automatic fixes: No
  13. 13 sqlfmt No phone app RecognisedPhone appDocumentedFree plan 5.3 Supported SQL dialects: PostgreSQL, MySQL, SQLite, SQL Server (T-SQL), BigQueryAutomatic fixes: Yes
  14. 14 Valk Guard No phone app RecognisedPhone appDocumentedFree plan 5.3 Supported SQL dialects: PostgreSQLAutomatic fixes: NoCustom rules: No
  15. 15 Prettier SQL No phone app RecognisedPhone appDocumentedFree plan 5.2 Supported SQL dialects: sql, bigquery, db2, db2i, hive, mariadb, mysql, n1ql, postgresql, plsql, redshift, singlestoredb, snowflake, spark, sqlite, transactsql, tsql, trino, clickhouse; node-sql-parser databases: bigquery, db2, hive, mariadb, mysql, postgresql, transactsql, flinksql, snowflakeAutomatic fixes: Yes
  16. 16 SQL Formatter No phone app RecognisedPhone appDocumentedFree plan 5.2Free Supported SQL dialects: Standard SQL, BigQuery, ClickHouse, IBM DB2, IBM DB2i, DuckDB, Apache Hive, MariaDB, MySQL, TiDB, Couchbase N1QL, Oracle PL/SQL, PostgreSQL, Amazon Redshift, SingleStoreDB, Snowflake, Spark, SQLite, SQL Server Transact-SQL, Trino/PrestoAutomatic fixes: Yes
  17. 17 SQL Formatter VSCode No phone app RecognisedPhone appDocumentedFree plan 5.2 Supported SQL dialects: BigQuery, DB2 for LUW, DB2 for IBM i, DuckDB, Hive, MariaDB, MySQL, N1QL, PL/SQL, PostgreSQL, Amazon Redshift, SingleStoreDB, Snowflake, Spark, SQLite, Trino (Presto), Transact-SQLAutomatic fixes: Yes
  18. 18 SQL Linter by SqlInt No phone app RecognisedPhone appDocumentedFree plan 5.2 Supported SQL dialects: Standard SQL (ANSI), PostgreSQL, MySQL, SQLite, BigQuery, Snowflake, SQL Server (T-SQL)Automatic fixes: Yes
  19. 19 JSQLFormatter No phone app RecognisedPhone appDocumentedFree plan 5.1Free Supported SQL dialects: Oracle, SQL Server, MySQL, MariaDB, PostgreSQL, H2, DuckDB, BigQuery, Redshift, Databricks, Snowflake
  20. 20 PgSanity No phone app RecognisedPhone appDocumentedFree plan 5.1 Supported SQL dialects: PostgreSQL
  21. 21 Primova SQL Formatter & Linter No phone app RecognisedPhone appDocumentedFree plan 5.1 Supported SQL dialects: Standard SQL, PostgreSQL, MySQL, SQLite, MariaDB, T-SQL (SQL Server), BigQuery, Snowflake
  22. 22 Public Tools SQL Formatter No phone app RecognisedPhone appDocumentedFree plan 5.1 Supported SQL dialects: Standard SQL, PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, Oracle PL/SQL, BigQuery, Snowflake, Redshift, Spark, Hive, Trino, DuckDB, ClickHouse, Db2, N1QL, SingleStore, TiDBAutomatic fixes: No
  23. 23 RegSQL No phone app RecognisedPhone appDocumentedFree plan 5.1 Supported SQL dialects: PostgreSQL, MySQL, MariaDB, SQLite, BigQuery, SQL Server, Snowflake, Oracle PL/SQL; the site also states 9 dialects but visibly names 8Automatic fixes: Yes
  24. 24 sql-tools No phone app RecognisedPhone appDocumentedFree plan 5.1 Supported SQL dialects: Snowflake, BigQuery, Databricks, PostgreSQL, MySQL, SQL Server
  25. 25 SQLFluff No phone app RecognisedPhone appDocumentedFree plan 5.1 Custom rules: Yes

Is your app on this list?

Numbered spots on this list can be sponsored. They are labelled, and the editorial order and scores never change for payment.

Questions about this list

Which SQL linters and formatter is ranked first on Samsung Mobile US Press?

Squawk is ranked #1 of 26 with a score of 7.3. sqlfmt is second and pgFormatter third.

How many of these have a free plan?

9 of the 25 on this page publish a free plan on their own pricing pages.

How is this list ranked?

Ranked mobile-first: a phone app alongside the web or desktop product, a free tier and the depth of its documentation. Paid placements never change a rank.

More in Developer Tools

All developer tools lists