SQL Formatter
Beautify and format SQL queries. Multiple dialects. Free, instant, private — processed in your browser.
About SQL Formatter
Format and beautify SQL queries with proper indentation, keyword capitalization, and consistent spacing. Supports SELECT, INSERT, UPDATE, DELETE, CREATE TABLE, and complex nested queries. All in your browser.
Keyword Formatting
Auto-capitalizes SQL keywords (SELECT, FROM, WHERE, JOIN). Configurable to uppercase or lowercase.
Smart Indentation
Nested queries, subqueries, and CTEs indented logically. Makes complex queries readable at a glance.
Multiple Dialects
Works with MySQL, PostgreSQL, SQLite, SQL Server, and standard SQL. Handles dialect-specific syntax.
Browser Privacy
SQL stays on your device. Formatting runs locally — no server upload, perfect for proprietary queries.