🔧 OnlineToolKit

SQL Formatter

Format and beautify SQL queries online. Uppercase keywords, break lines and minify. Free SQL prettifier, runs locally.

Frequently asked questions

Is my SQL query sent anywhere?
No. Formatting runs entirely in your browser, so queries containing sensitive data stay private.
Which SQL dialect does it support?
It handles standard ANSI keywords shared by MySQL, PostgreSQL, SQLite and SQL Server. Dialect-specific syntax is passed through untouched.
Does it change string literals?
This simple formatter uppercases keywords everywhere, including inside quoted strings. Always double-check string literals after formatting.
Can I compress a query?
Yes, the Minify button collapses all whitespace so long queries fit on one line for logs or embedding.

This tool runs entirely in your browser. No data is uploaded anywhere.