Raw SQL Query
Paste your unformatted SQL
Formatted SQL

Formatted SQL will appear here

This tool formats SQL queries with proper indentation, line breaks, and keyword capitalization. All processing happens client-side in your browser. Supports SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, and DROP statements with proper handling of JOINs, subqueries, and complex clauses.