SQL Formatter
Format SELECT, INSERT, UPDATE, and common clauses so queries are easier to read in reviews and runbooks.
SQL is formatted locally and is not sent to a database or API.
Beautify SQL for review
Paste a statement and format it so keywords and clauses are easier to read in reviews and runbooks. The formatter does not run SQL against a database. For JSON payloads inside SQL strings, format the JSON separately with the JSON Formatter.
How to format SQL
- Paste a SQL statement.
- Select Format.
- Copy the indented query into your editor.
SQL Formatter FAQ
Which SQL dialect is supported?
The formatter is dialect-agnostic and focuses on readability. It does not execute SQL.
Are queries sent to a database?
No. Formatting is local. Never paste credentials inside SQL comments on shared machines.
Related tools
- JSON Formatter — Pretty-print or minify JSON in your browser.
- Regex Tester — Test JavaScript regular expressions against sample text.
Guides: developer guides, service enquiry.