SQL Formatter

Paste raw SQL and get a properly formatted, keyword-capitalized, indented query.

About the SQL Formatter

This SQL formatter beautifies your SQL queries with proper indentation and keyword capitalization. It makes complex queries readable and easier to debug.

How to Use

  1. Paste your SQL query into the input area
  2. Click "Format" to beautify
  3. Copy the formatted SQL

What Gets Formatted

Supported SQL Dialects

This formatter works with standard SQL and is compatible with MySQL, PostgreSQL, SQL Server, Oracle, and SQLite queries.