SQL Formatter
Format and beautify SQL online for free. Dialect support for MySQL/MariaDB, PostgreSQL, SQLite and T-SQL, keyword casing and indentation options.
About SQL Formatter
Paste a messy one-line query and get clean, indented SQL. Choose the dialect — standard SQL, MySQL/MariaDB, PostgreSQL, SQLite or T-SQL — and keyword casing.
Formatting is powered by sql-formatter and runs fully client-side, so queries are never sent to a server.