SQL Formatter vs SQLFormat.org
SQL Formatter
sql-formatter-org.github.ioSQLFormat.org
sqlformat.orgSide by side
| Figure | SQL Formatter | SQLFormat.org |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | Yes |
| Web | Yes | Yes |
| Windows | Yes | — |
| macOS | Yes | — |
| Linux | Yes | — |
| API | — | Yes |
| Self-hosted | — | Yes |
| Plans published | 1 | 2 |
| Spec score · SQL Linters and Formatters | 7.7 (#13) | 8.4 (#4) |
| Formatting options | Options 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. |
| License | The software is released under the MIT license. | The site says the sqlparse module is released under the New BSD License. |
| Purpose | SQL Formatter is a JavaScript library for pretty-printing SQL queries. | SQLFormat is a free online formatter for SQL statements. |
Plans
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.
SQLFormat.org
SQLFormat.org has no write-up on Specifiction yet; its figures are above.