Which SQL dialect options are available?
The selector offers Standard SQL, MySQL, PostgreSQL, SQLite, SQL Server, and Oracle. It uses the chosen dialect’s keyword list during its text transformations.
Format or minify SQL queries directly in your browser.
Preparing the editor...
The guide and instructions on this page are available while the tool loads.
SQL Formatter applies text-based formatting to common SELECT, FROM, WHERE, JOIN, GROUP BY, and ORDER BY patterns for easier review and documentation.
Minify mode collapses whitespace when you need a compact single-line query for logs or embedded scripts.
Runs locally — avoid pasting production credentials even when processing stays on your device.
Typical tasks this tool is built for.
SQL formatting and minify run locally in your browser. Queries are not sent to a server.
Practical tips before you download or share the output.
This formatter improves readability for common SQL patterns, but it is not a full SQL parser. Very advanced procedural SQL may need custom handling.
Longer reads that pair well with this tool.
Common next steps after using this tool.
Automatically format and validate JSON in your browser.
Create QR codes for URLs, plain text, email, phone numbers, and Wi-Fi credentials in your browser.
Generate strong random passwords directly in your browser.
Encode and decode Base64 text directly in your browser.
Decode JSON Web Tokens directly in your browser.
Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes in your browser.
Situations where this workflow saves time.
The selector offers Standard SQL, MySQL, PostgreSQL, SQLite, SQL Server, and Oracle. It uses the chosen dialect’s keyword list during its text transformations.
Format SQL can use 2 spaces, 4 spaces, or tabs. Minify SQL instead collapses whitespace to create compact output.
Yes. The component has separate keyword-case and identifier-case selectors with uppercase, lowercase, and preserve choices.
In Format SQL, Compact output collapses whitespace instead of applying the normal formatted line-break path. Minify SQL also collapses whitespace, using the selected casing and comment settings.
When selected, it removes -- line comments and /* ... */ comment blocks before the output is built. Leave it off when those comments are needed for review or execution context.
It appends a semicolon to trimmed output only if there is not already one at the end. It does not validate whether that terminator is appropriate for the SQL you entered.
No. It does not execute SQL or provide complete syntax validation. Treat the result as text that still needs review and testing in its intended database environment.
No such guarantee is implemented. Comments, procedural SQL, quoted content, and vendor-specific syntax deserve manual review before the output is executed.
Yes. Copy output uses the browser clipboard API, and Download creates a formatted.sql file with an application/sql content type when output is available.
Browse related tools or open the full workspace.