All processing happens locally in your browser · No data uploaded
SQL Formatter
Clean up complex SQL queries with our formatter. Supports MySQL, PostgreSQL, SQLite, MS SQL Server, and Oracle dialects. Keywords are uppercased, indentation is consistent.
Input SQL
Formatted SQL
SELECT u.id, u.name, u.email, o.total, o.status FROM users u INNER JOIN orders o ON u.id=o.user_id WHERE o.status='active' AND o.total>1000 ORDER by o.total DESC LIMIT 10
SQL Format Rules
Keywords: UPPERCASE Indent: 2 spaces SELECT columns: one per line JOIN conditions: aligned WHERE clauses: AND/OR aligned
Examples
Complex query
Result: SELECT u.id, u.name, o.total FROM users u JOIN orders o ON u.id = o.user_id WHERE o.status = 'active' ORDER BY o.total DESC LIMIT 10
Complex query becomes highly readable with proper formatting.
Frequently Asked Questions
Which SQL dialects are supported?
MySQL, PostgreSQL, SQLite, MS SQL Server (T-SQL), Oracle, and standard ANSI SQL are all supported.