SQL formatter
Format and indent SQL for PostgreSQL, MySQL, SQLite, SQL Server, Oracle and 15 other dialects, with keyword case options.
Loading the SQL formatter…
Try:
Formatting uses the sql-formatter library (MIT), loaded from this site. Only whitespace and letter case change; strings and comments are kept as written.