DQL formatter

Paste a DQL statement and pretty-print it in the browser. Keywords are uppercased, major clauses move to new lines, and nested parentheses indent one level. String literals in single quotes are left alone.

Formatting and copy run in your browser and need JavaScript. The input box still works without it.

Formatted DQL

A small client-side pretty-printer, not a DQL engine. It will not catch syntax errors or run the query. See the DQL cheatsheet for copy-paste statements.