// by seankriegler.com

SQL Formatter

Format and beautify SQL queries with proper indentation

// SQL Formatter

Capitalises SQL keywords and adds line breaks and indentation for readability. Handles SELECT, JOIN, WHERE, and more.

// Keywords

Recognises SELECT, FROM, WHERE, JOIN, LEFT JOIN, RIGHT JOIN, INNER JOIN, ON, AND, OR, ORDER BY, GROUP BY, HAVING, LIMIT, INSERT, UPDATE, DELETE, SET, VALUES, UNION, CASE, WHEN, THEN, ELSE, END.

// Use Cases

Clean up minified queries, format SQL for documentation, prepare code for review, debug complex queries.