dev utility
SQL Formatter
Format SQL locally with dialect, keyword-case and indentation controls.
SQL formatter
Format SQL locally for review; queries are not uploaded. Choose a dialect because keyword and identifier rules differ.
Formatted SQL
How it works
Format a SQL query locally for review. Choose a dialect, keyword case and indentation; the query is never uploaded. This is a formatter, not a SQL parser or executor.
Limits
- Formatting does not validate that a query is executable or semantically correct.
- Dialects are approximated by the formatter library; unusual vendor syntax may be rejected or altered.
- No query, schema or data is uploaded or executed.
Questions
Does it execute or validate SQL?
No. It only formats text. It does not connect to a database or prove that a query is valid.
Which dialects are supported?
Standard SQL, PostgreSQL, MySQL, MariaDB, SQLite and BigQuery via the formatter library; vendor-specific syntax may vary.
Privacy
Usage measurement is off for this tool. This page makes no analytics request. Your input is not sent to a server.