OneKitTools logoOneKitTools

SQL Formatter

Format and beautify SQL queries

About SQL Formatter

Format and beautify SQL queries with customizable indentation and keyword casing — paste messy SQL, get clean output, all in your browser.

How to use SQL Formatter

  1. 1Paste your SQL query into the input area.
  2. 2Toggle 'Uppercase keywords' to capitalize SQL keywords (SELECT, FROM, WHERE, etc.).
  3. 3Set the indent size for nested clauses.
  4. 4Click 'Format' to beautify the SQL.
  5. 5Copy the formatted output.

Tips

  • Uppercase keywords is the most common SQL convention — it makes queries easier to scan.
  • Format complex queries before code review to make them readable and catch logic errors.
  • Use 2-space indentation for compact queries and 4-space for deeply nested subqueries.

Related tools

OneKitTools TeamUpdated 2.21.4