PRISM.TOOLS
โ Donate
๐๏ธ SQL Formatter
Format and beautify SQL queries for better readability
SQL Dialect
Standard SQL
MySQL
PostgreSQL
MariaDB
SQLite
T-SQL (SQL Server)
PL/SQL (Oracle)
Indentation
2 spaces
4 spaces
Tab
Keyword Case
UPPERCASE
lowercase
Unformatted SQL
๐ Paste
๐๏ธ
SELECT u.id, u.name, u.email, COUNT(o.id) as order_count, SUM(o.total) as total_spent FROM users u LEFT JOIN orders o ON u.id = o.user_id WHERE u.created_at > '2024-01-01' AND u.status = 'active' GROUP BY u.id, u.name, u.email HAVING COUNT(o.id) > 5 ORDER BY total_spent DESC LIMIT 10;
Formatted SQL
๐ Copy
๐พ Save
โจ Format SQL
๐ฆ Minify SQL
Load Sample Query
Complex SELECT
Multiple JOINs
Subqueries
CTE (WITH)
Window Functions