Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

This page's audience our own tag's counts — open to see them
–Visits
–Page views
–Clicks to vendors
–Time on page
–Reading now
Clicks to vendors, by tool
  • –
Top countries
  • –
Devices
  • –

– · visits, page views and clicks counted by our own tag, which counts more than our checked analytics; every figure rounded down · how we count

SQL Formatter

Free#6 of 25 in SQL Linters and Formatters

SQL Formatter: A broad SQL formatter with strong integration options, but limited linting depth. Ranked #6 of 25 in SQL Linters and Formatters by our editors (8.3/10); pricing: Open source; best for developers needing broad SQL formatting APIs.

8.3/10Editor score
SQL Formatter8.3 Visit SQL Formatter

At a glance

  • Editor score
    8.3 / 10
  • Pricing
    Open source
  • Best for
    Developers needing broad SQL formatting APIs
  • Paid from
    Free
  • 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/Presto
  • Automatic fixes
    Yes
  • Facts checked
    20 Sep 2026
SQL Formatter screenshot
  • Where it wins

    • Supports 20 named SQL dialects, from Standard SQL to Trino/Presto
    • Offers JavaScript, CLI, browser, editor, and Prettier usage options
    • Supports autofix, project configuration, and prepared-statement placeholders
  • Where it doesn't

    • Focuses on formatting rather than full SQL linting
    • Development is in maintenance mode, with new features unlikely
    • Some workflows require JavaScript, CLI, or editor integration setup

Our verdict on SQL Formatter

SQL Formatter is an open-source JavaScript library and command-line tool for pretty-printing SQL queries. It is aimed at developers who need consistent formatting across applications, scripts, editors, or browser-based workflows. The project supports 20 named dialects, including PostgreSQL, MySQL, BigQuery, Snowflake, SQLite, and SQL Server Transact-SQL. Developers can access it through npm, JavaScript imports, the CLI, or a browser demo, making it suitable for both programmatic formatting and individual query cleanup.

Its strongest fit is breadth across development environments. The JavaScript library API can bring formatting into application workflows, while the command-line interface supports file-based processing and in-place fixing with --fix. A JSON project configuration file, .sql-formatter.json, provides a way to keep formatting choices consistent across a project. Placeholder replacement for prepared SQL statements is also available. Editor and tooling integrations include VS Code, Vim, Prettier, and ESLint, giving teams several ways to place formatting within existing development processes.

SQL Formatter is more focused than a complete SQL linting platform. Its documented capabilities center on pretty-printing, autofix, configuration, and integration rather than broad rule-based analysis. The project is maintained in maintenance mode: bugs may be fixed, but new features are unlikely to be added. That makes it a practical choice for developers who value an open-source formatter with many dialects and flexible APIs, especially when the required workflow already matches its integrations. Teams seeking an actively expanding linting system or deeper SQL quality checks should consider an alternative with a broader linting scope.

Your product? Our editors can test SQL Formatter in depth and publish a review, labelled as paid · from $149/mo →

SQL Formatter pricing

Plans Open sourceFree Free to use — no paid tier required for the core job.
See plans on sql-formatter-org.github.io

SQL Formatter fact sheet

Free planNot verified
Paid fromFree
Supported SQL dialectsStandard 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/Presto
Automatic fixesYes
Custom rulesNot verified
Editor extensionsYes
CI/CD integrationNot verified
Configuration fileYes
DeploymentCloud, Browser extension
PlatformsWeb
SupportDocs, Community
Built forSolo, Small business, Mid-market, Enterprise (editorial estimate)
Integrations4 integrations: VS Code, Vim, Prettier, ESLint
PricingOpen source
Websitesql-formatter-org.github.io
Facts checked20 Sep 2026

SQL Formatter integrations

SQL Formatter lists 4 integrations on its own site.

  • VS Code
  • Vim
  • Prettier
  • ESLint

Alternatives to SQL Formatter

See all SQL Formatter alternatives →

SQL Formatter vs the competition

Compare SQL Formatter with any tool side by side →

Used SQL Formatter? Be the first to review it

The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used SQL Formatter for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.

Write a reviewTwo minutes · verified accounts only · read by an editor before it appears

Reviews come only from verified accounts. Sign in or create an account first — your e-mail is never shown.

Your rating

0 characters · at least 80, up to 3,000

Posted from your verified account. Reviews appear after an editor reads them, usually within two working days.

Featured on iTechGuides

Featured on iTechGuides — SQL Formatter 8.3/10

SQL Formatter is listed in our SQL Linters and Formatters directory. Add the badge to your site — it links back to this page.

<a href="https://www.itechguides.com/products/sql-formatter/"><img src="https://www.itechguides.com/best/badge/sql-formatter.svg" alt="Featured on iTechGuides" width="230" height="46"></a>

Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026

Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.

Last updated · How we research and update