SQL Formatter

Format, beautify, and minify your SQL queries with syntax highlighting

Input SQL

Formatted Output


      
Original chars: 0
Formatted chars: 0
Lines: 0

How to Use

  1. Paste your SQL: Copy and paste your SQL query into the input panel
  2. Choose your dialect: Select the SQL variant (MySQL, PostgreSQL, etc.)
  3. Configure options: Toggle uppercase keywords and newline preferences
  4. Format: Click "Format SQL" to beautify with proper indentation
  5. Copy or download: Use the buttons to copy to clipboard or download as .sql file

The formatter supports SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, DROP and many other SQL statements with full syntax highlighting.