SQL Formatter

Format and beautify SQL queries with customizable indentation and keyword casing options.

How to Use

Paste your SQL query into the input box and click "Process". The tool will format your SQL with proper indentation and keyword casing. Choose your preferred keyword case (UPPERCASE, lowercase, or Capitalize) and whether to reindent lines.

Examples

Simple SELECT

Format a basic SELECT query

SELECT*FROM users WHERE age>18 AND status="active"

Complex JOIN

Format a query with JOIN

SELECT u.name,o.total FROM users u LEFT JOIN orders o ON u.id=o.user_id WHERE o.total>100

We use cookies to improve your experience

We use essential cookies to ensure our calibration tools and preferences work as intended. By continuing, you agree to our use of cookies.

Learn More