← Back to tool

UPPER · lower · Capitalize

Uppercase SQL Keywords

Updated: June 2026

The classic SQL convention is uppercase keywords against lowercase identifiers, so the reserved words jump out from your tables and columns. This tool applies that casing automatically — or flips it to lowercase if you prefer.

Uppercase My Keywords →

Free · No upload · Instant in the browser

Why uppercase keywords

For decades the dominant SQL style has been uppercase reserved words — SELECT, FROM, WHERE, JOIN, GROUP BY — set against lowercase or mixed-case identifiers. The reason is purely visual: SQL has no indentation rules of its own, so casing becomes the main way to separate the language's machinery from your data's names. When keywords shout in uppercase, the skeleton of the query is instantly recognisable, and a column that happens to be named order or select is easy to tell apart from the keyword.

Not everyone agrees, and that is fine. Some modern style guides prefer all-lowercase SQL for a calmer look. The important thing is consistency within a codebase, and a one-click converter makes whichever convention you choose effortless to apply.

Keywords change, identifiers do not

The crucial detail is that case conversion must be selective. You want select to become SELECT, but you absolutely do not want userId to become USERID — in case-sensitive databases that would break the query, and even where it works it destroys readable camelCase names. This tool only recases tokens it recognises as reserved words and data types. Everything else is left byte-for-byte as written.

select firstName, lastName from Users where isActive = 1

becomes:

SELECT
  firstName,
  lastName
FROM
  Users
WHERE
  isActive = 1

Notice firstName, Users and isActive are untouched — only the keywords were promoted to uppercase.

Three casing modes

ModeExample
UPPERSELECT, FROM, LEFT JOIN, GROUP BY
lowerselect, from, left join, group by
CapitalizeSelect, From, Left Join, Group By

Data types follow the same rule, so varchar becomes VARCHAR in uppercase mode. Pick the mode that matches your house style and the whole query is converted in one pass.

Apply it to legacy code

Inherited SQL is rarely consistent — one developer typed keywords in caps, another in lowercase, a third mixed both in the same statement. Running the converter over those queries gives the whole file a single voice in seconds, which makes the next round of edits far easier to read. Because the conversion runs locally in your browser, you can normalise even proprietary queries without uploading them anywhere, and the page keeps working with no connection at all.

Frequently asked questions

How do I uppercase SQL keywords automatically?

Paste the query, set the Keywords option to UPPER, and every reserved word is rewritten in uppercase instantly. Your identifiers keep their original case.

Will it uppercase my column names too?

No. Only reserved keywords and data types are recased. Table names, column names and aliases are left exactly as you typed them.

Can I make keywords lowercase instead?

Yes. The same control offers lowercase and Capitalized options, so you can match whatever your team's style guide prefers.