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

prettier-plugin-sql-cst

Free#25 of 25 in SQL Linters and Formatters

prettier-plugin-sql-cst: A flexible Prettier SQL formatter, strongest with SQLite and BigQuery. Ranked #25 of 25 in SQL Linters and Formatters by our editors (6.1/10); pricing: Free plan; best for prettier users needing experimental SQL parsers.

6.1/10Editor score
prettier-plugin-sql-cst6.1 Visit site

At a glance

  • Editor score
    6.1 / 10
  • Pricing
    Free plan
  • Best for
    Prettier users needing experimental SQL parsers
  • Free plan
    Yes
  • Paid from
    Free
  • Supported SQL dialects
    SQLite, BigQuery, PostgreSQL, PL/pgSQL, MySQL, MariaDB
  • Automatic fixes
    Yes
  • Facts checked
    20 Sep 2026
prettier-plugin-sql-cst screenshot
  • Where it wins

    • Formats SQL by expression length with casing controls
    • Supports SQLite and BigQuery parsers
    • Works with Prettier CLI and Visual Studio Code
  • Where it doesn't

    • PostgreSQL, PL/pgSQL, MySQL, and MariaDB parsers are experimental
    • Requires a Prettier-based formatting workflow
    • Dialect support is narrower outside SQLite and BigQuery

Our verdict on prettier-plugin-sql-cst

prettier-plugin-sql-cst is an open-source Prettier plugin for formatting SQL files. It uses a concrete syntax tree and Prettier’s formatting algorithm to adjust layout according to expression length while preserving most syntax elements. It is aimed at developers who already use Prettier and want SQL formatting in the same workflow, particularly for SQLite and BigQuery projects.

Formatting controls extend beyond line layout. The plugin supports casing options for SQL keywords, literals, types, identifiers, and functions. It can apply canonical syntax transformations, enforce a final semicolon, and format embedded languages such as JSON and JavaScript. SQL formatting runs through the Prettier command-line tool, and the plugin works with the Prettier Visual Studio Code extension, giving it a direct fit with command-line and editor-based workflows.

The main trade-off is dialect coverage. SQLite and BigQuery are supported parsers, while PostgreSQL, PL/pgSQL, MySQL, and MariaDB parsers are experimental. That makes the plugin a focused choice for teams standardizing SQL presentation through Prettier, especially when their dialect matches the primary parser support. Teams working heavily with the experimental dialects should account for that status before making the plugin their default formatter. As an open-source project with a free plan, it offers formatting, casing, transformation, and editor integration without a paid-plan structure described here.

Your product? Our editors can test prettier-plugin-sql-cst in depth and publish a review, labelled as paid · from $149/mo →

prettier-plugin-sql-cst pricing

Plans Free planFree Free to use — no paid tier required for the core job.
See plans on github.com

prettier-plugin-sql-cst fact sheet

Free planYes
Paid fromFree
Supported SQL dialectsSQLite, BigQuery, PostgreSQL, PL/pgSQL, MySQL, MariaDB
Automatic fixesYes
Custom rulesNot verified
Editor extensionsYes
CI/CD integrationNot verified
Configuration fileYes
SupportDocs
Built forSolo, Small business (editorial estimate)
Integrations2 integrations: Prettier, Visual Studio Code
PricingFree plan
Websitegithub.com
Facts checked20 Sep 2026

prettier-plugin-sql-cst integrations

prettier-plugin-sql-cst lists 2 integrations on its own site.

  • Prettier
  • Visual Studio Code

Alternatives to prettier-plugin-sql-cst

See all prettier-plugin-sql-cst alternatives →

Used prettier-plugin-sql-cst? 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 prettier-plugin-sql-cst 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 — prettier-plugin-sql-cst 6.1/10

prettier-plugin-sql-cst 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/prettier-plugin-sql-cst/"><img src="https://www.itechguides.com/best/badge/prettier-plugin-sql-cst.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