Beautify messy SQL into clean, readable queries — or minify to one line. Private, in your browser.
SQL that arrives as one giant line — copied from a log, an ORM, or a colleague — is painful to read and easy to misread. This formatter reflows it into a clean, conventional layout: keywords uppercased, each major clause (SELECT, FROM, WHERE, JOIN, GROUP BY, ORDER BY) on its own line, conditions and columns broken out so the structure of the query is obvious at a glance. It also does the reverse, minifying a formatted query back to a single compact line for embedding in code.
It runs entirely in your browser and is careful with string literals — text inside quotes is never reformatted or uppercased — so your queries and any embedded data never leave your device. It is a fast way to make sense of an unfamiliar query or tidy your own before committing it.