SQL formatter

Indent a SQL statement and uppercase its keywords with a light formatter that runs entirely in your browser.

A light re-flower, not a full parser: strings, quoted identifiers and comments are preserved, and clauses start on their own line with two spaces per parenthesis level. Unusual vendor syntax may not be laid out ideally.