Clause-aware
Recognizes common SQL clauses and keywords to decide where new lines and indentation belong.
Paste raw or minified SQL to get clean, indented output with keywords capitalized and placed on their own lines.
🔒 Your SQL stays on your device and is never uploaded.
Paste a minified or inconsistently formatted SQL query to get it broken into clean lines, with major clauses like SELECT, FROM, WHERE, JOIN, GROUP BY and ORDER BY starting a new line and keywords capitalized for readability.
Recognizes common SQL clauses and keywords to decide where new lines and indentation belong.
Choose 2 spaces, 4 spaces or tabs, and toggle automatic keyword capitalization.
Formatting runs entirely in your browser. Nothing is uploaded.
It uses generic ANSI SQL keyword rules that work well for MySQL, PostgreSQL, SQL Server and SQLite queries. Dialect-specific syntax may not format perfectly.
No. This is a formatter, not a parser or validator, so it will not catch syntax errors in your query.
Yes. Choose 2 spaces, 4 spaces or a tab from the indent option before formatting.
No. Formatting happens entirely in your browser using JavaScript.