SQL Formatter

Format SQL queries with uppercase keywords and indentation.

Paste SQL for a readable layout: line breaks, indentation and uppercase keywords.

Processing is local without a SQL parser or database. Query validity is not checked.

Recommended tools

FAQ

No. Formatting only changes readability and keyword casing, not query logic.

Single and double quotes are tracked, and the backslash is considered an escape of the closing quotation mark. The parentheses change the indentation level, but the complex rules of specific SQL dialects are not analyzed.