Utilix
Developer Tools

SQL Formatter

Format and minify SQL queries. Uppercases keywords, breaks JOINs and clauses onto their own lines.

Paste SQL above to get started.

Files processed in your browser

Your files never leave your device. No upload, no servers.

About SQL Formatter

SQL Formatter pretty-prints any SQL query — SELECT, INSERT, UPDATE, DELETE, DDL — by uppercasing keywords and breaking major clauses (FROM, WHERE, JOIN, GROUP BY, ORDER BY) onto their own indented lines. Click Minify to collapse it back to a single line. Useful for inspecting queries pulled from log files, formatting copy-pasted ORM output, and making raw SQL readable before pasting into a doc.

Frequently asked questions