ToolZoneX
Blog

SQL Keywords Uppercase

Convert every recognized SQL keyword in a query to UPPERCASE while leaving identifiers, string literals, and formatting untouched.

SQL Input
Output (Keywords Uppercased)

Output will appear here...


How to Use SQL Keywords Uppercase

Paste any SQL query into the input box. This tool scans it against a list of roughly 70 common SQL keywords (SELECT, FROM, WHERE, JOIN, GROUP, ORDER, and many more) and converts every recognized keyword to UPPERCASE, matched as a whole word and case-insensitively — while leaving table names, column names, numbers, and punctuation completely untouched. Content inside single-quoted string literals is skipped entirely, so a value like 'select this' is never mistaken for a keyword.

Example

Input select id, name from users where status = 'active' becomes SELECT id, name FROM users WHERE status = 'active' — every recognized keyword is capitalized, table/column names are left as-is, and the quoted string 'active' is untouched.

Common Use Cases

  • Standardizing keyword casing in SQL before committing it to a shared codebase or style guide.
  • Cleaning up lowercase SQL generated by a tool or copied from documentation.
  • Making a long query easier to scan by visually distinguishing keywords from identifiers.

FAQs

  • How is this different from the SQL Formatter or SQL Beautifier? Our SQL Formatter and SQL Beautifier reformat whitespace and indentation, restructuring the query onto multiple lines. This tool ONLY changes keyword casing — every other character, including line breaks and spacing, is left exactly as you typed it.
  • Will this change text inside string literals? No — content inside single-quoted strings is detected and skipped, so a value like 'select all rows' stays exactly as written even though it contains words that would otherwise be recognized as keywords.
  • Does it recognize every SQL keyword from every database dialect? It covers roughly 70 of the most common standard SQL keywords used across MySQL, PostgreSQL, SQLite, and SQL Server. Highly dialect-specific keywords not on that list are left in their original case.