Freedom251 › SQL Linters and Formatters
sqlfmt

What sqlfmt is
sqlfmt is a web-based SQL formatter and validator for preparing and checking queries. Choose a supported dialect and configure keyword case, indentation, comma style, and line width; it can also flag misspelled keywords. Its validator parses SQL for PostgreSQL, MySQL, SQLite, SQL Server (T-SQL), and BigQuery, and reports syntax errors with their line and column. Formatting, validation, and typo suggestions run locally in the browser. SQL is sent to the service when you save a snippet or create a shareable link. The Free plan costs nothing and includes 20 analyses per day, all five dialects, live formatting, saved snippets, and history. Pro costs $9 a month and includes unlimited analyses and REST API access with API keys. Pro API users can send requests to POST /api/v1/analyze, with a limit of 60 requests per minute per key; the API reference has examples for Shell, Node, Python, Ruby, and PHP. sqlfmt was built by Sharon Ben-Moshe. It is available on the web and as an API, and supports CI/CD integration.
Who it suits
sqlfmt suits people who want to format SQL and check syntax or misspelled keywords across its five supported dialects. Its Free plan accommodates up to 20 analyses per day, while Pro adds unlimited analyses and API access for users who need those capabilities.
What it does well
- Formats with configurable keyword case, indentation, commas, and line width.
- Reports syntax errors with exact line and column.
- Supports PostgreSQL, MySQL, SQLite, T-SQL, and BigQuery.
- Formatting and validation run locally in the browser.
- Free plan includes saved snippets and history.
What to know first
- Free plan is limited to 20 analyses per day.
- REST API access requires Pro.
Limits
The Free plan allows 20 analyses per day. REST API access is included with Pro, which costs $9 a month; each API key is limited to 60 requests per minute.
Plans
| Plan | Billed and limits | Price |
|---|---|---|
| Free | $0/forever · 20 analyses per day · all 5 dialects · live formatting · saved snippets & history | Free |
| Pro | $9/month · Unlimited analyses · all Free features · REST API access with API keys · export and shareable links coming soon | $9 a month |
As sqlfmt.app lists them, read 8 Oct 2026. The maker's own page has the final word.
Getting started
- Open https://www.sqlfmt.app/.
- Choose a supported SQL dialect.
- Set keyword case, indentation, comma style, and line width.
- Use the Free plan for up to 20 analyses per day, or Pro for unlimited analyses and API access.
- Sign in with Google or GitHub to save snippets and formatting options.
Verdict
Choose sqlfmt for browser-based SQL formatting and validation across its five supported dialects, especially if the Free plan's daily allowance is enough. Choose Pro at $9 a month for unlimited analyses and API access.
Questions
What does sqlfmt do?
It formats SQL, validates syntax by dialect, and flags misspelled keywords. Syntax errors include the line and column.
Which SQL dialects does it support?
PostgreSQL, MySQL, SQLite, SQL Server (T-SQL), and BigQuery.
Is there a free plan?
Yes. Free costs nothing and includes 20 analyses per day, all five dialects, live formatting, saved snippets, and history.
How much does Pro cost?
Pro costs $9 a month. It includes unlimited analyses and REST API access with API keys.
Where does SQL processing happen?
Formatting, validation, and typo suggestions run locally in the browser. SQL is sent to the service when a user saves a snippet or creates a shareable link.
Who made sqlfmt?
The About page says it was built by Sharon Ben-Moshe.
Facts from sqlfmt's own pages
- Analytics
- The service uses Google Analytics and PostHog for usage and technical data, including page views, interactions, browser and device details, and approximate location derived from IP address. · sqlfmt.app, 8 Oct 2026
- API
- Pro subscribers can use POST /api/v1/analyze with a Bearer API key; the API is limited to 60 requests per minute per key. · sqlfmt.app, 8 Oct 2026
- API integrations
- The API reference provides examples for Shell, Node, Python, Ruby, and PHP. · sqlfmt.app, 8 Oct 2026
- Browser processing
- Formatting, validation, and typo suggestions run locally in the browser, and SQL is sent to the service only when a user saves a snippet or creates a shareable link. · sqlfmt.app, 8 Oct 2026
- Data storage
- Saved SQL snippets and formatting options are associated with the user's account and can be deleted at any time. · sqlfmt.app, 8 Oct 2026
- Dialects
- It supports PostgreSQL, MySQL, SQLite, SQL Server (T-SQL), and BigQuery. · sqlfmt.app, 8 Oct 2026
- Formatting
- It formats SQL using configurable keyword case, indentation, comma style, and line width. · sqlfmt.app, 8 Oct 2026
- Maker
- The About page says sqlfmt was built by Sharon Ben-Moshe. · sqlfmt.app, 8 Oct 2026
- Product
- sqlfmt is an online SQL formatter and validator that also flags misspelled keywords. · sqlfmt.app, 8 Oct 2026
- Security and privacy
- The privacy policy says SQL input, formatted SQL, and validation details are masked in PostHog session replay recordings before they leave the browser. · sqlfmt.app, 8 Oct 2026
- Sign-in
- The privacy policy lists Google and GitHub as sign-in providers. · sqlfmt.app, 8 Oct 2026
- Support
- The maker lists [email protected] as the fastest way to reach it for questions, bug reports, feature ideas, and feedback. · sqlfmt.app, 8 Oct 2026
- Validation
- It parses SQL by dialect and reports syntax errors with the exact line and column. · sqlfmt.app, 8 Oct 2026
Where sqlfmt stands on Freedom251
- SQL Linters and Formatters#15 of 26