Data · SQL

SQL Query Formatter & Keyword Uppercase Beautifier

Paste messy SQL and get a clean, consistently indented query with normalized keywords. Compare original vs. formatted in a diff view, then copy with one click — everything runs locally in your browser.


          

Nothing is uploaded. Formatting, highlighting and the diff are computed entirely in this tab.

Does my SQL get sent to a server?

No. The tokenizer, formatter and diff engine are plain JavaScript running in your browser. Your queries — including table names, credentials in connection strings or literal values — never leave the page, so it is safe for proprietary schemas.

Which SQL dialects does the formatter understand?

The tokenizer is dialect-agnostic: it understands standard SQL plus the common PostgreSQL, MySQL, SQLite and SQL Server constructs (double-quoted, backtick and bracket identifiers, -- and /* */ comments, dollar-free string literals with '' escapes, :: casts and ->> operators). String literals, comments and identifiers are preserved exactly; only reserved keywords are re-cased.