SQL formatter

Make long one-line queries readable. Strings and comments are left untouched.

How to format SQL

  1. 01Paste your query.
  2. 02Choose Format (UPPERCASE), Format (keep case) or Minify.
  3. 03Copy the result.

FAQ

No. Everything runs in your browser with JavaScript. Nothing you type is uploaded, and closing the tab clears it.