FreeUtilFreeUtil

SQL Formatter & Minifier

Format, beautify, or minify SQL queries. Multiple dialects, keyword casing, configurable indentation.

Formatted output will appear here

About This Tool

Paste any SQL query and click Format to beautify it with proper indentation and keyword casing. Use Minify to compress it into a single line. Supports Standard SQL, MySQL, PostgreSQL, and SQLite dialects.

Features

  • Format with configurable indentation (2 or 4 spaces).
  • Minify to remove all whitespace and comments.
  • Uppercase or lowercase SQL keywords.
  • Multiple SQL dialect support for accurate formatting.
  • One clause per line, proper subquery indentation.