Home › Developer tools › SQL Formatter

SQL Formatter

Paste a SQL query and get it neatly indented with consistent keyword case.

Runs entirely in your browser. Nothing is uploaded.

How to use SQL Formatter

  1. Paste your SQL query.
  2. Choose your database dialect and keyword case.
  3. Click Format SQL and copy the result.

Frequently asked questions

Does it run my query?

No. It only reformats the text. Nothing connects to a database.