SQL Formatter

JSON →
library 4.0.11 ·javascript
verified Jun 5, 2026

SQL Formatter is a JavaScript library for pretty-printing SQL queries. It supports many dialects: Standard SQL, MariaDB, MySQL, PostgreSQL, DB2, PL/SQL (Oracle), N1QL (Couchbase), Redshift (Amazon), Spark, and T-SQL. Version 4.0.11 is the latest stable release. It is actively maintained, with releases on npm. Key differentiators: broad dialect support, placeholders replacement, and a CLI tool. The library ships TypeScript types and is ESM-first. It does not support stored procedures or custom delimiters.