SQL Formatter & Beautifier
Format, beautify or minify SQL — runs locally in your browser.
Only whitespace and keyword case ever change: strings, quoted names (
"x", `x`, [x]), variables (@v, :name, $1, ?) and comments are kept exactly. Works with MySQL, PostgreSQL, SQL Server, SQLite and Oracle syntax; it formats, it does not validate. Minify removes comments except /*! … */ and /*+ … */ hints.