SQL FORMATTER

SQL Formatter for MySQL and PostgreSQL

Choose a dialect, then format or minify. Your SQL is never executed.

Stored procedures and SQL syntax validation are not supported.

About the SQL Formatter

This SQL formatter adds line breaks and indentation to dense queries so that their structure is easier to inspect. Separating clauses such as SELECT, JOIN, WHERE, and ORDER BY makes long statements more readable when you need to understand what a query does.

Choose MySQL or PostgreSQL, then format a query for review or minify it to remove unnecessary whitespace. It is useful for reading SQL copied from logs, checking a query during debugging, or giving a team a consistent view during code review.

Your SQL is never executed, sent to a server, or stored by this tool. Processing happens in your browser, so you can inspect query structure without sending the text elsewhere.

Your input is never sent to or stored on a server. Everything runs in this browser.

AboutPrivacy