Transform minified or messy SQL queries into clean, standardized code. Automatically capitalizes reserved keywords (SELECT, FROM, JOIN, WHERE, GROUP BY) and structures clauses onto indented lines.
Runs entirely in your browser
A long SQL query crammed onto one line is hard to read and harder to review. This formatter reindents SQL into clean, standardized code: it capitalises reserved keywords like SELECT, FROM, JOIN, WHERE and GROUP BY, and lays out clauses on their own indented lines so the structure of the query is visible at a glance.
Readable SQL is easier to debug, review and maintain, and consistent formatting across a team removes pointless diffs. Whether the input is minified, generated by an ORM, or just messily written, the tool produces a tidy, conventional layout.
It runs in your browser, so your queries — which may reference real table and column names — are not uploaded. Use it before committing SQL, when reviewing someone else’s query, or to make a generated statement legible.
TechToolsHQ is an independent, reader-supported tech platform. If this free tool saved you time, solved a problem, or helped your workflow, consider supporting our work. Your support helps us keep our utilities 100% free, private, and ad-free for everyone.