Developer tool

SQL Formatter

Paste a messy SQL query to get it broken onto readable lines with keyword capitalization.

What this formatter does

It uppercases common SQL keywords and breaks the query onto a new line before each major clause (SELECT, FROM, WHERE, JOIN, GROUP BY, ORDER BY, and so on) — a lightweight readability pass rather than a full SQL parser, so highly nested subqueries may need manual touch-ups.