ToolEmpire

SQL Formatter

Reformats messy SQL: uppercased keywords, one clause per line, indented subqueries.

Inputs

Results

About this tool

Paste a crammed SQL query to get keywords uppercased, each major clause on its own line, and subqueries indented per nesting level. Quoted strings stay intact.

How to use

  1. 1Paste your SQL into the Paste SQL box, or press the sample button to load a messy query with a subquery, a CASE, and an IN list.
  2. 2Watch keywords get uppercased and clauses break onto their own lines live as you type.
  3. 3Check the stats: lines, keywords uppercased, clause breaks, and characters.
  4. 4Copy the formatted query back into your editor or database client.

Frequently asked questions

Related tools