SQL Formatter

A JavaScript library and CLI for pretty-printing SQL, with dedicated MySQL, MariaDB, and TiDB dialects.


About

SQL Formatter reformats SQL queries for readability in JavaScript applications and from the command line, with a language option for each supported dialect, including mysql, mariadb, and tidb. It doesn’t support stored procedures or changing the statement delimiter.

It’s released under the MIT license.

Category Software & Tools
Subcategory Schema Management & Migration
✎ Suggest an update

Community feedback

This space is for grounded, evaluable experience — versions used, environments, what you measured or observed, and how it behaves alongside other software. General impressions without supporting detail may be removed. Sign in to write one; posts are tied to a verified identity, not anonymous.