Skip to content
SPECIFICTION
Get listed

SQL Formatter vs SQLFormat.org

SQL Formatter

sql-formatter-org.github.io

SQLFormat.org

sqlformat.org

Side by side

FigureSQL FormatterSQLFormat.org
Price fromFreeFree
Free planYesYes
Free trial——
Open source—Yes
WebYesYes
WindowsYes—
macOSYes—
LinuxYes—
API—Yes
Self-hosted—Yes
Plans published12
Spec score · SQL Linters and Formatters7.7 (#13)8.4 (#4)
Formatting optionsOptions include indentation, keyword and data type case, function and identifier case, logical operator placement, expression width, spacing between queries, and operator spacing.Options include keyword and identifier case, indentation, output format, comment removal, and compact mode.
LicenseThe software is released under the MIT license.The site says the sqlparse module is released under the New BSD License.
PurposeSQL Formatter is a JavaScript library for pretty-printing SQL queries.SQLFormat is a free online formatter for SQL statements.

Plans

SQL Formatter

  • FreeFree

SQL Formatter pricing →

SQLFormat.org

  • FreeFree
  • SQLFormatFree

SQLFormat.org pricing →

In their own words

SQL Formatter

SQL Formatter is a free, MIT-licensed JavaScript library for pretty-printing SQL queries, with a browser demo and command-line tool. Formatting options include indentation; keyword, data type, function, and identifier case; logical operator placement; expression width; query spacing; and operator spacing. It supports dialects including BigQuery, ClickHouse, DB2, DuckDB, Hive, MariaDB, MySQL, TiDB, Couchbase N1QL, Oracle PL/SQL, PostgreSQL, Redshift, SingleStoreDB, Snowflake, Spark, SQL Server Transact-SQL, and Trino/Presto. The command-line tool accepts SQL from standard input or a file, can produce formatted output, and can update a file in place. The project also lists VS Code and Vim extensions, a Prettier plugin, and an ESLint integration. Its JSON Schema supports configuration-file autocompletion and IntelliSense, with usage guides for VS Code and Zed. The library can replace prepared-statement placeholders when parameter values are supplied. It does not support stored procedures or changing the delimiter from a semicolon. Templating syntax is not directly supported; a parameter-type workaround may not cover every construct. The maintainer describes the project as being in maintenance mode, with feasible bug fixes and likely no new features.

Visit sql-formatter-org.github.io

SQLFormat.org

SQLFormat.org has no write-up on Specifiction yet; its figures are above.

Visit sqlformat.org