U UtiliFile

SQL Formatter

Paste messy SQL and get it back clean and readable. Formats SELECT, INSERT, UPDATE, DELETE, CREATE, and more.

Why format SQL?

Well-formatted SQL is easier to read, debug, and maintain. This tool automatically adds consistent indentation, newlines after clauses, and uppercases SQL keywords — turning one-liner queries into structured, readable code.

Supported statements

  • SELECT — with JOINs, WHERE, GROUP BY, HAVING, ORDER BY, LIMIT
  • INSERT INTO — single and multi-row inserts
  • UPDATE … SET … WHERE
  • DELETE FROM … WHERE
  • CREATE TABLE — column definitions
  • WITH (CTE) — common table expressions