SQL formatter
Format SQL for PostgreSQL, MySQL, BigQuery, Snowflake, and other dialects.
Runs in browser
Use from your agent
Streamable HTTP at https://benchline.fabwaseem.com/mcp. No key. The tool name is format_sql.
mcp.jsonjson
1{
2 "mcpServers": {
3 "benchline": {
4 "url": "https://benchline.fabwaseem.com/mcp"
5 }
6 }
7}
tools/calljson
1{
2 "jsonrpc": "2.0",
3 "id": 1,
4 "method": "tools/call",
5 "params": {
6 "name": "format_sql",
7 "arguments": {
8 "sql": "example",
9 "dialect": "postgresql",
10 "keywordCase": "upper",
11 "indent": 2
12 }
13 }
14}
Related tools
- JSON formatterPretty-print, minify, and validate JSON, with the exact line and column when it fails.JSONMCPNew
- Regex testerTest a JavaScript pattern, read the groups, and preview a replacement.RegexMCPNew
- JSON YAML converterConvert JSON, YAML, TOML, and XML in the browser, and keep the line number when a document fails.JSONMCPNew
- CSV JSON converterConvert CSV to JSON and JSON back to CSV, with a delimiter and a header row you choose.TablesMCPNew
How it works
Free SQL formatter. Pick a dialect, choose upper, lower, or preserved keywords, and indent with 2 or 4 spaces. Formatting runs in the browser.
- 01
Paste a query
Drop a SELECT, an INSERT, or a longer script into the editor.
- 02
Pick a dialect
Keyword rules differ. PostgreSQL and BigQuery are both in the list.
- 03
Copy the formatted SQL
Choose keyword case and indent, then copy or download the result.