SQLFormat.org
sqlformat.org
- Free plan
- Open source
- Web
- Browser extension
- API
- Self-hosted
What SQLFormat.org is
SQLFormat.org is a free SQL statement formatter available as a web tool and API. The browser formatter processes statements locally with Pyodide and sqlparse. Formatting options include keyword and identifier case, indentation, output format, comment removal, and compact mode. The API can format SQL or split a string into statements, returning JSON results, with access limited to 500 requests per hour for one IP address. The privacy policy says browser-processed SQL is not sent to servers or third parties, stored on the server, or logged. It also states that IP addresses are logged for security and performance monitoring, while errors are logged to Sentry. The linked sqlparse Python module can be used in other applications and is released under the New BSD License. Its parser is non-validating and dialect-agnostic, so syntactically incorrect SQL can still be parsed.
Who it suits
It suits developers and database users who need browser-based SQL formatting or a simple formatting API. It is also useful when local browser processing is preferred.
Good to know, and what to watch
- Free web formatter and API
- Processes browser SQL locally
- Offers case, indentation, and compact options
- API returns JSON results
- sqlparse source is available under New BSD License
- API limited to 500 requests per hour per IP
- No specific SQL dialects are listed
- Parser does not validate SQL syntax
- IP addresses are logged
Plans
Every plan and priceFree
SQLFormat
Free plan
The verdict
SQLFormat.org provides local browser formatting and a small JSON API without a paid plan. Its non-validating, dialect-agnostic parser offers flexibility, while the API rate limit and IP logging are important operating details.
What the maker publishes
- API
- The API can format SQL statements and split a string into SQL statements, returning JSON results. source
- API examples
- The documentation supplies usage examples for Python, JavaScript, Bash, Ruby and PowerShell clients. source
- API format endpoint
- The API accepts POST requests at /api/v1/format and returns formatted SQL in a JSON result field. source
- API limit
- API access is limited to 500 requests per hour for a single IP. source
- API limit
- API access is limited to 500 requests per hour for one IP address. source
- API options
- API parameters include reindent, indent_width, identifier_case, keyword_case and strip_comments. source
- API responses
- The API documents 200, 400, 429 and 500 HTTP responses, with error bodies normally returned as plain text. source
- API split endpoint
- The /api/v1/split endpoint separates a string containing multiple SQL statements and returns them as a JSON list. source
- Browser processing
- The web formatter processes SQL in the browser using Pyodide and sqlparse. source
- Browser processing
- The current web formatter runs Pyodide with sqlparse in the browser, so entered SQL is processed locally. source
- Chrome extension details
- The related SQL Format extension has about 3,000 users, version 4.1, and was updated May 23, 2024. source
- Command line
- Installing sqlparse also installs a sqlformat command that reads stdin, writes stdout and can edit files in place. source
- Company identity
- The SQLFormat merchandise page says Andi runs both sqlformat.org and phasenpunkt.de. source
- Contact
- The site lists [email protected] as its contact email. source
- Downloadable code
- The site links to the sqlparse Python module source and says it can be used in your own applications. source
- Extensibility
- The project documents a pre-commit hook and invites contributions, bug reports and feature requests through GitHub. source
- File input
- The web interface includes an upload-file control for bringing SQL into the formatter. source
- Formatting controls
- The interface offers keyword case, identifier case, indentation, output-format, comment-removal and compact-mode controls. source
- Formatting options
- Options include keyword and identifier case, indentation, output format, comment removal, and compact mode. source
- Keyboard shortcuts
- Ctrl/Cmd+Enter formats a statement, while Shift+Ctrl/Cmd+Enter formats and copies it. source
- Latest release
- PyPI lists sqlparse 0.6.0 as released on August 13, 2026, with one maintainer identified as Andi Albrecht. source
- Licence
- The sqlparse module is released under the New BSD/BSD-3-Clause licence. source
- License
- The site says the sqlparse module is released under the New BSD License. source
- 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. source
Checked against the maker's pages on 15 Oct 2026.