SQL Formatter

Format, beautify, or minify SQL queries with syntax highlighting.

Options:
Input SQL
Lines: 0  Chars: 0
Formatted Output
Lines: 0  Chars: 0
check_circle Copied to clipboard!

About the SQL Formatter

Paste messy or minified SQL and get it back cleanly indented, with keywords uppercased and clauses on separate lines. Supports SELECT, INSERT, UPDATE, DELETE, CREATE, and most standard SQL syntax including subqueries and JOINs. Useful for readability in code reviews, documentation, and debugging complex queries.