All / Developer

SQL Formatter

Break a SQL statement onto new lines at common clauses so it is easier to read.

Keywords such as SELECT, FROM, and WHERE start a new line. Quoted strings and comments stay intact.

  1. 1Paste SQL.
  2. 2Press Format.
  3. 3Copy the result.

About this tool

Break a SQL statement onto new lines at common clauses such as SELECT, FROM, and WHERE. Quoted strings and comments stay intact.

  • The query is not run
  • The clause list is generic, not a single dialect parser
  • Nothing is executed

Questions

Does it run the query?
No. It only wraps text.
Which dialect?
The clause list is generic.
Quoted text?
String literals and comments are left as written.

Ratings

No ratings yet. The average shows after 3 ratings.

Ratings come from people using this tool. Nobody is paid or rewarded for them, and written reviews are checked for spam before they appear, not for whether they are positive.

Related tools