Freedom251 › SQL Linters and Formatters
SQLFormat.org

What SQLFormat.org is
SQLFormat.org is a free online tool for formatting SQL statements, available in a browser and through an API. The browser formatter processes statements locally using Pyodide and sqlparse. Users can adjust keyword and identifier case, indentation, output format, comment removal, and compact mode. Its API formats SQL or splits a string into separate statements and returns JSON results, with a limit of 500 requests per hour for a single IP. The privacy policy says browser-handled SQL is not sent to servers or third parties, stored on the server, or logged. It also says IP addresses are logged for security and performance monitoring and that errors go to Sentry. The linked sqlparse Python module can be used in other applications and is released under the New BSD License. Its parser does not validate SQL and is dialect-agnostic, so it can parse syntactically incorrect statements; the site names no specific dialects. Users can report bugs or send feedback through the page’s Feedback button.
Who it suits
It suits people who want to format SQL in a browser or call a simple formatting API. Its dialect-agnostic, non-validating parser may be useful when working with statements that are not syntactically correct.
What it does well
- Free browser formatter and API.
- Formatting options include case, indentation, and compact mode.
- Browser SQL is not sent to servers, per the privacy policy.
- API can format SQL and split strings into statements.
What to know first
- API access is limited to 500 requests per hour per IP.
- No specific SQL dialects are listed.
- IP addresses and errors are logged, per the privacy policy.
Limits
The free API allows up to 500 requests per hour for a single IP. The parser is dialect-agnostic, and no specific SQL dialects are named.
Plans
| Plan | Billed and limits | Price |
|---|---|---|
| SQLFormat | API: 500 requests per hour per IP | Free |
| Free | browser formatter · API limited to 500 requests/hour/IP · Python module | Free |
As sqlformat.org lists them, read 4 Oct 2026. The maker's own page has the final word.
Getting started
- Open https://sqlformat.org/ to use the web formatter.
- Set the formatting options you want, then process your SQL in the browser.
- Use the API to format SQL or split a string into statements, within its per-IP request limit.
- Use the linked sqlparse Python module in your own application if that fits your needs.
Verdict
SQLFormat.org provides browser-based SQL formatting and a limited API at no listed cost. Note the per-IP API cap and the parser’s non-validating behavior.
Questions
Is SQLFormat.org free?
Yes. Its listed plan is free at 0.00 USD.
What platforms does it support?
It is available as a web tool and an API.
What can the formatter change?
Options include keyword and identifier case, indentation, output format, comment removal, and compact mode.
What does the API do, and what is its limit?
It formats SQL and splits strings into SQL statements, returning JSON results. Access is limited to 500 requests per hour for a single IP.
Is the sqlparse module open source?
The site says the linked module is released under the New BSD License.
How are browser SQL statements handled?
The privacy policy says they are processed in the browser and are not sent to servers or third parties, stored on the server, or logged.
Facts from SQLFormat.org's own pages
- API
- The API can format SQL statements and split a string into SQL statements, returning JSON results. · sqlformat.org, 4 Oct 2026
- API examples
- The documentation supplies usage examples for Python, JavaScript, Bash, Ruby and PowerShell clients. · sqlformat.org, 15 Oct 2026
- API format endpoint
- The API accepts POST requests at /api/v1/format and returns formatted SQL in a JSON result field. · sqlformat.org, 15 Oct 2026
- API limit
- API access is limited to 500 requests per hour for one IP address. · sqlformat.org, 15 Oct 2026
- API options
- API parameters include reindent, indent_width, identifier_case, keyword_case and strip_comments. · sqlformat.org, 15 Oct 2026
- API responses
- The API documents 200, 400, 429 and 500 HTTP responses, with error bodies normally returned as plain text. · sqlformat.org, 15 Oct 2026
- API split endpoint
- The /api/v1/split endpoint separates a string containing multiple SQL statements and returns them as a JSON list. · sqlformat.org, 15 Oct 2026
- Browser processing
- The current web formatter runs Pyodide with sqlparse in the browser, so entered SQL is processed locally. · sqlformat.org, 15 Oct 2026
- Chrome extension details
- The related SQL Format extension has about 3,000 users, version 4.1, and was updated May 23, 2024. · chromewebstore.google.com, 15 Oct 2026
- Command line
- Installing sqlparse also installs a sqlformat command that reads stdin, writes stdout and can edit files in place. · github.com, 15 Oct 2026
- Company identity
- The SQLFormat merchandise page says Andi runs both sqlformat.org and phasenpunkt.de. · sqlformat.org, 15 Oct 2026
- Contact
- The site lists [email protected] as its contact email. · sqlformat.org, 4 Oct 2026
- Downloadable code
- The site links to the sqlparse Python module source and says it can be used in your own applications. · sqlformat.org, 4 Oct 2026
- Extensibility
- The project documents a pre-commit hook and invites contributions, bug reports and feature requests through GitHub. · github.com, 15 Oct 2026
- File input
- The web interface includes an upload-file control for bringing SQL into the formatter. · sqlformat.org, 15 Oct 2026
- Formatting controls
- The interface offers keyword case, identifier case, indentation, output-format, comment-removal and compact-mode controls. · sqlformat.org, 15 Oct 2026
- Formatting options
- Options include keyword and identifier case, indentation, output format, comment removal, and compact mode. · sqlformat.org, 4 Oct 2026
- Keyboard shortcuts
- Ctrl/Cmd+Enter formats a statement, while Shift+Ctrl/Cmd+Enter formats and copies it. · sqlformat.org, 15 Oct 2026
- Latest release
- PyPI lists sqlparse 0.6.0 as released on August 13, 2026, with one maintainer identified as Andi Albrecht. · pypi.org, 15 Oct 2026
- Licence
- The sqlparse module is released under the New BSD/BSD-3-Clause licence. · sqlformat.org, 15 Oct 2026
- License
- The site says the sqlparse module is released under the New BSD License. · sqlformat.org, 4 Oct 2026
- Limit: API integration
- A Stack Overflow user reported receiving HTTP 400 responses when posting JSON from R to the format endpoint and used a GET workaround. · stackoverflow.com, 15 Oct 2026
- Limit: parser security history
- GitHub Security lists high, moderate and critical denial-of-service advisories affecting sqlparse versions, including regex and deeply nested-input issues. · github.com, 15 Oct 2026
- Limit: request volume
- A Stack Overflow question specifically identifies the 500-requests-per-hour single-IP ceiling as a constraint for programmatic use. · stackoverflow.com, 15 Oct 2026
Where SQLFormat.org stands on Freedom251
- SQL Linters and Formatters#2 of 26