SQL Formatter
Format and beautify SQL queries online for free. Uppercase keywords, clause-per-line layout and indentation — or minify to one line. Browser-only.
Frequently asked questions
- Are my files uploaded to a server?
- No. This tool runs entirely in your browser using JavaScript — your files never leave your device.
- Which SQL dialects are supported?
- The formatter is dialect-agnostic: it works with standard SQL keywords used by PostgreSQL, MySQL, SQLite, SQL Server and others. It formats layout only — it never changes your query's meaning.
- Can I minify SQL too?
- Yes — the Minify button collapses the query to a single line with minimal whitespace, handy for logs and config files.