πŸ› οΈToolsShed

SQL Formatter

Format and beautify SQL queries for better readability.

SqlFormatter.info

SQL Formatter takes unformatted or minified SQL queries and rewrites them with consistent indentation, capitalised keywords, and line breaks that make even complex multi-join queries easy to read. Well-formatted SQL is easier to review in code reviews, debug in query editors, and maintain over time.

Paste any SQL statement β€” SELECT, INSERT, UPDATE, DELETE, CREATE, or stored procedure definitions β€” into the input area and click Format. The tool supports multiple SQL dialects including MySQL, PostgreSQL, SQLite, T-SQL (SQL Server), and standard ANSI SQL.

You can also use the tool to minify SQL when you need a compact single-line version for embedding in code strings. All formatting happens in the browser with no query data sent to any server.

Frequently Asked Questions

Comments & Feedback

Comments are powered by Giscus. Sign in with GitHub to leave a comment.