SQL Formatter

Paste messy SQL and get a beautifully formatted query with proper indentation and uppercased keywords.

Uppercase Keywords
📝 Input SQL
✨ Formatted Output

Why Format SQL?

Properly formatted SQL is easier to read, debug, and maintain. This tool automatically indents clauses, uppercases keywords (SELECT, FROM, WHERE, etc.), and structures your queries consistently. All processing happens in your browser — your SQL is never sent to any server.